Skip to content

Instantly share code, notes, and snippets.

@Shilo
Created April 9, 2014 13:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Shilo/10269268 to your computer and use it in GitHub Desktop.
Save Shilo/10269268 to your computer and use it in GitHub Desktop.
Terminal git commands to merge github original repo into forked repo.
git clone git@github.com:<your-gh-name>/<repo-name>.git <local-directory-path>
cd <local-directory-path>
git remote add upstream https://github.com/<original-gh-name>/<repo-name>.git
git pull upstream master
git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment