Last active
December 21, 2015 11:08
-
-
Save samueljohn/6296807 to your computer and use it in GitHub Desktop.
This is how I use two remotes "origin" and "samuel" and have the master branch use origin so `brew update` works as usual.
When I want to contribute, I use:
`git checkout -b my_new_feature` and then `git push --set-upstream samuel my_new_feature` to push it to my own fork ("samuel") of homebrew.
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
[core] | |
repositoryformatversion = 0 | |
filemode = true | |
bare = false | |
logallrefupdates = true | |
ignorecase = true | |
autocrlf = false | |
[color] | |
branch = auto | |
status = auto | |
interactive = auto | |
diff = auto | |
[prompt] | |
showinfo = true | |
[remote "samuel"] | |
fetch = +refs/heads/*:refs/remotes/samuel/* | |
url = [email protected]:samueljohn/homebrew.git | |
[remote "origin"] | |
url = https://github.com/mxcl/homebrew.git | |
fetch = +refs/heads/*:refs/remotes/origin/* | |
[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