Created
January 1, 2012 17:52
-
-
Save pithyless/1547905 to your computer and use it in GitHub Desktop.
Git track upstream repo
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
One time: | |
git remote add upstream git@github.com:foo/bar.git | |
git fetch upstream | |
git checkout -b upstream upstream/master | |
Each time you want to update: | |
git checkout upstream | |
git pull | |
git checkout master | |
git rebase upstream |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment