-
-
Save kennethkalmer/107453 to your computer and use it in GitHub Desktop.
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
# steps I took | |
$ git clone [email protected]:kjwierenga/rufus-scheduler.git | |
$ cd rufus-scheduler | |
$ git branch -a | |
* master | |
origin/HEAD | |
origin/master | |
origin/twozero | |
$ git remote add upstream git://github.com/jmettraux/rufus-scheduler.git | |
$ git branch -a | |
* master | |
origin/HEAD | |
origin/master | |
origin/twozero | |
# Changes made from here | |
$ git branch --track upstream/master upstream/master # 1 | |
$ git branch -a | |
master | |
* upstream/master | |
origin/HEAD | |
origin/master | |
origin/twozero | |
upstream/master | |
upstream/twozero | |
# So now you have a local tracking branch, time to merge | |
$ git checkout master | |
$ git checkout -b merge-branch | |
$ git merge upstream/master # <- git will moan about ambigious branch name, but will use the local tracking branch) | |
# hack away resolving conflicts | |
$ git checkout master | |
$ git merge merge-branch | |
$ git branch -d merge-branch | |
# to update and sync later | |
$ git checkout upstream/master | |
$ git pull | |
$ git checkout master | |
$ git rebase upstream/master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment