Skip to content

Instantly share code, notes, and snippets.



Last active Dec 21, 2015
What would you like to do?
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.
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
autocrlf = false
branch = auto
status = auto
interactive = auto
diff = auto
showinfo = true
[remote "samuel"]
fetch = +refs/heads/*:refs/remotes/samuel/*
url =
[remote "origin"]
url =
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