repository

Using someone else's repo as a Git Submodule on GitHub

穿精又带淫゛_ 提交于 2019-11-28 03:08:07
I am trying to find out if it is possible to use someone else's repository (or branch of a repository) as a Submodule in your own Git repository. Documentation on github itself is either missing, or I'm not using the right terminology to look for it. If this isn't the preferred way to go about including a public repository as a shared library within ones git project, suggestions as an alternative best practice would be appreciated. Mark Longair Yes, you can add any repository as a submodule in your project. Just do: git submodule add git://github.com/whomsoever/whatever.git ... in the top

How do I make git-svn use a particular svn branch as the remote repository?

Deadly 提交于 2019-11-28 02:59:01
A word of warning: I'm a n00b to git in general. My team uses feature branches in svn , and I'd like to use git-svn to track my work on a particular feature branch. I've been (roughly) following Andy Delcambre's post to set up my local git repo, but those instructions seem to have led git to pick the svn branch that had changed most recently as the remote repository; the problem is that's not the branch I care about. How do I control which branch git-svn uses? Or am I approaching this completely wrong? UPDATE: I did use the -T , -b , and -t options (in my case because the svn repo has multiple

Git error: src refspec master does not match any [duplicate]

风流意气都作罢 提交于 2019-11-28 02:53:01
This question already has an answer here: Message 'src refspec master does not match any' when pushing commits in Git 66 answers I need to create a repo named carboncake . I tried this: Cloned the gitosis-admin repository to my local machine $ git clone gitosis@myserver.net:repositories/gitosis-admin.git $ cd gitosis-admin $ vim gitosis.conf Added the [repo carboncake] and [group carboncake] section to the end of the file [gitosis] [group team] writable = sweepshots members = git_id_rsa [group gitosis-admin] writable = gitosis-admin members = git_id_rsa [repo carboncake] description = A brand

Can a project have multiple origins?

 ̄綄美尐妖づ 提交于 2019-11-28 02:41:09
Can a project have two (or more) "origins" in Git? I would like to push a single project to both github and a Heroku server. Specifically, this error appears when adding the github repository: $ git remote add origin https://github.com/Company_Name/repository_name.git fatal: remote origin already exists. You can have as many remotes as you want, but you can only have one remote named "origin". The remote called "origin" is not special in any way, except that it is the default remote created by Git when you clone an existing repository. You can configure a second remote, push to/pull from that

Transfer git repositories from GitLab to GitHub - can we, how to and pitfalls (if any)?

浪尽此生 提交于 2019-11-28 02:38:51
Can one transfer repositories from GitLab to GitHub if the need be. If so, how exactly can I go about doing the same? Also, are there any pitfalls in doing so or precautionary measures that I need to keep in mind before doing so given that I may decide to eventually move them to GitHub (as it has more features at the moment that I might find handy for my project). VonC You can transfer those (simply by adding a remote to a GitHub repo and by pushing them) create an empty repo on GitHub git remote add github https://yourLogin@github.com/yourLogin/yourRepoName.git git push --mirror github The

Best Repository Pattern for ASP.NET MVC

送分小仙女□ 提交于 2019-11-28 02:35:54
I recently learned ASP.NET MVC (I love it). I'm working with a company that uses dependency injection to load a Repository instance in each request, and I'm familiar with using that repository. But now I'm writing a couple of MVC applications of my own. I don't fully understand the hows and whys of the repository my company uses, and I'm trying to decide the best approach to implement data access. I am using C# and Entity Framework (with all the latest versions). I see three general approaches for handling data access. Regular DB context within a using statement each time I access data. This

Maven error: Not authorized, ReasonPhrase:Unauthorized

佐手、 提交于 2019-11-28 02:24:26
问题 I checked out my code from the Nexus repository repository. I changed the password for my account and set it correctly inside my settings.xml file. While executing mvn install clean I get the error saying Not authorized, ReasonPhrase:Unauthorized when it tries to download files from that repository. Any idea how to solve this error? I am using Windows 7 with Maven 3.04 回答1: The issue may happen while fetching dependencies from a remote repository. In my case, the repository did not need any

How to set up default value in symfony2 select box with data from database

Deadly 提交于 2019-11-28 02:18:41
问题 I have this code ->add('user', 'entity', array( 'class' => 'Acme\Entity\User', 'query_builder' => function(EntityRepository $er) use ($options) { return $er->createQueryBuilder('u') ->orderBy('u.name', 'ASC'); }, 'data' => $option['id'] )) Its not working public function buildForm(FormBuilderInterface $builder, array $options) { $builder ->add('description') ->add('user', 'entity', array( 'class' => 'Acme\Entity\User', 'query_builder' => function(EntityRepository $er) use ($options) { return

Syncing source code with Git source control provider and Visual studio

女生的网名这么多〃 提交于 2019-11-28 01:43:42
This time, I need to work with Git with Visual studio and is my first time source control configuration, so please bear with me :) concept: https://drive.google.com/file/d/0B0_k0QpCVjHYZFFyRng4b2R5b2s/view?usp=sharing Aim: Sync all developers code to a single repository using Git & it's provider in Visual studio . Allow developers to check in from and push to this repository Revert back to the last working condition Other advantages of version control What is already done: Following this article, I have setup the main git repository location as: \\192.168.3.46\operation\Automation\gittest The

Publish SNAPSHOT artifacts to Maven using IVY - what's the magic?

泄露秘密 提交于 2019-11-28 01:25:36
问题 We have a slight convoluted situation... For the most part we've been using IVY and ANT to manage our builds and dependencies. Now the company is moving towards using Maven. We have a set of projects called common libraries which are used by several of the core products. Common libraries use IVY and are published to an IVY repository. We also need to make common libraries available for our new Maven projects. So when common libraries get built and published, I've modified the script to