Skip to content

Instantly share code, notes, and snippets.

@jamesbjackson
Last active February 19, 2020 12:54
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 jamesbjackson/b2d7ed1d8d5ce45b936d58850d288f42 to your computer and use it in GitHub Desktop.
Save jamesbjackson/b2d7ed1d8d5ce45b936d58850d288f42 to your computer and use it in GitHub Desktop.
git remote add upstream https://github.com/ORIGINAL_OWNER/REPOSITORY.git
git remote -v
origin https://github.com/USERNAME/REPOSITORY.git (fetch)
origin https://github.com/USERNAME/REPOSITORY.git (push)
upstream https://github.com/ORIGINAL_OWNER/REPOSITORY.git (fetch)
upstream https://github.com/ORIGINAL_OWNER/REPOSITORY.git (push)
git fetch upstream
git checkout master
git rebase upstream/master
git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment