Created
September 6, 2012 08:40
-
-
Save vinhnx/3653160 to your computer and use it in GitHub Desktop.
upstream - keep track of origin
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
# 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