Created
May 5, 2017 23:24
-
-
Save cookieguru/c75c4f6ef0b0f6a5ab5c9a36a411bc8e to your computer and use it in GitHub Desktop.
Updating a fork using git rebase instead of merge
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
git clone [email protected]:yourname/repo-name.git | |
cd repo-name | |
git remote add upstream https://github.com/original-user/repo-name.git | |
git checkout master | |
git fetch upstream | |
git rebase upstream/master | |
git push |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment