Last active
August 29, 2015 14:03
-
-
Save rob-murray/a85b1a859b7527e7c0b6 to your computer and use it in GitHub Desktop.
Git keep fork up to date; pull upstream changes
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
# 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