Skip to content

Instantly share code, notes, and snippets.

@rob-murray
Last active August 29, 2015 14:03
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 rob-murray/a85b1a859b7527e7c0b6 to your computer and use it in GitHub Desktop.
Save rob-murray/a85b1a859b7527e7c0b6 to your computer and use it in GitHub Desktop.
Git keep fork up to date; pull upstream changes
# inside fork dir
git remote add upstream ORIGINAL_REPO
git fetch upstream
# pull upstream branch
git pull upstream {branch}
# rebase a branch
git rebase upstream/{branch}
# or merge a tag
git merge {tag}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment