Created
March 24, 2011 14:06
-
-
Save yorzi/885110 to your computer and use it in GitHub Desktop.
set git config for sharing same git repos with multi-repos.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
For doing push/pull as below: | |
git pull unfuddle master | |
git pull heroku master | |
git push unfuddle master | |
git push heroku master | |
========================== | |
vim .git/config | |
========================== | |
[core] | |
repositoryformatversion = 0 | |
filemode = true | |
bare = false | |
logallrefupdates = true | |
ignorecase = true | |
[remote "origin"] | |
fetch = +refs/heads/*:refs/remotes/origin/* | |
url = [email protected]:MY_APP.git | |
[remote "unfuddle"] | |
fetch = +refs/heads/*:refs/remotes/origin/* | |
url = git@*****.unfuddle.com:MY_APP.git | |
[remote "heroku"] | |
fetch = +refs/heads/*:refs/remotes/origin/* | |
url = [email protected]:MY_APP.git | |
[branch "master"] | |
remote = origin | |
merge = refs/heads/master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment