Created
July 29, 2014 08:47
-
-
Save SmiddyPence/4a9d0ca9b0cdeecad07f to your computer and use it in GitHub Desktop.
Git Updating Fork
This file contains hidden or 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
# Add original/upstream repo as remote | |
git remote add upstream https://github.com/whoever/whatever.git | |
# Fetch new commits | |
git fetch upstream | |
# Make sure your on your own master | |
git checkout master | |
# Replay any of your commits ontop of upstream commits | |
git rebase upstream/master | |
# Push changes to your fork | |
git push -f origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment