heroku - How can I setup my .git/config to be able to push to / pull from multiple remote repositories? -


OK, I have three different computers that I work with and now their configurations are all different so push me To do / draw each one on one and its very troubles what I want to do is a config file which I can use for all three which will allow me to do the following:

  git push Unchanged git pull upgrade git push unfuddle git heroku pull  code>  

and m I'm new to git, so I know that maybe I need myoku master or 'heroku orig' or somethign?

How my config file looks now:

  [core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true [remote "orig"] fetch = + Refs / heads / *: refs / Remotes / Origin / * url = git@heroku.com: HeroCA-APPGT [Branch "Master"] Remote = Original Merge = Riffs / Head / Master [Remote "Unfident"] fetch = + refs / Heads / *: Refs / remotes / origin / * url = git@UNFUDDLE-APP.unfuddle.com: UNFUDDLE-APP / UNFUDDLE-APP.git  

Obviously to protect the innocent The git URLs were changed for What should I do so that I can push with these two repo / easily push?

first

  • Configure locally in your current repost
  • Configure locally in your current user (home directory)
  • Configure local in your system

The amount of remote repo addresses you can define, and you can do it at the user level, provided that you have to remove that config file from the disk Bring Distaste

  Add Git Remote Origin 1 GIT + SSH: //remote.location/git/repository1.git git Remote Add Original 2 GIT + SSH: //remote.location/git/ Repository2.git git Remote Add Original 3 GIT + SSH: //remote.location/git/repository3.git  

If those commands are configured only by their existing repo When you add remote addresses to files, you can manually transfer your current user config files.

But on each repo, you have to define for your correct repo:

  GIT branch - Set-upstream master Origin 1 / Master  < / Pre> 

(From Git1.7.0, two before git config branch before you had to do it first)

So if you have the right synchronization mechanism for user sync file (For example), then you have all the sets.


Comments