Skip to content

Instantly share code, notes, and snippets.

@yorzi
Created March 24, 2011 14:06
Show Gist options
  • Save yorzi/885110 to your computer and use it in GitHub Desktop.
Save yorzi/885110 to your computer and use it in GitHub Desktop.
set git config for sharing same git repos with multi-repos.
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