Skip to content

Instantly share code, notes, and snippets.

@drewlesueur
Created April 17, 2011 04:28
Show Gist options
  • Save drewlesueur/923762 to your computer and use it in GitHub Desktop.
Save drewlesueur/923762 to your computer and use it in GitHub Desktop.
How to sync your forked branch

This is how I synced my forked underscore.js repo with the original repo
From your forked repo:

git checkout -b upstream/master
git remote add upstream git://github.com/documentcloud/underscore.git
git pull upstream master
git checkout master                          // [my master branch]
git merge upstream/master (git rebase upstream/master ????)
git push origin master

some help from http://groups.google.com/group/github/browse_thread/thread/6196487279beb2a8/181b7bc4bf7a3e16

If there is a better way, I'd like to know

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment