Skip to content

Instantly share code, notes, and snippets.

@brntbeer
Created June 17, 2013 22:04
Show Gist options
  • Save brntbeer/5800917 to your computer and use it in GitHub Desktop.
Save brntbeer/5800917 to your computer and use it in GitHub Desktop.
Set up instructions to update your fork
# These instructions will set up a second remote server, fetch that data down to your
# remote tracking branches, namespaced under 'upstream/'.
# You can then checkout to your master, merge in the upstream changes, and push back to your fork (origin)
# where USER is the original owner name and ORIGINAL is the original project you forked from
git remote add upstream https://github.com/USER/ORIGINAL.git
git fetch upstream
git checkout master
git merge upstream/master
git push origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment