Skip to content

Instantly share code, notes, and snippets.

@vinhnx
Created September 6, 2012 08:40
Show Gist options
  • Save vinhnx/3653160 to your computer and use it in GitHub Desktop.
Save vinhnx/3653160 to your computer and use it in GitHub Desktop.
upstream - keep track of origin
# UPSTEAM
# ... Use the following commands to add the 'upsteam' (original project location) as a remote branch
# so that you can get their updates into your branch.
# Replace the 'upstreamname' and 'projectname' values with that actual user/project name that you're trying to track.
# http://gun.io/blog/how-to-github-fork-branch-and-pull-request/
--
# add origin project as a remote name `upstream`
git remote add --track master upstream git://github.com/upstreamname/projectname.git
# get the code from `upstream`
git fetch upstream
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment