Skip to content

Instantly share code, notes, and snippets.

@SmiddyPence
Created July 29, 2014 08:47
Show Gist options
  • Save SmiddyPence/4a9d0ca9b0cdeecad07f to your computer and use it in GitHub Desktop.
Save SmiddyPence/4a9d0ca9b0cdeecad07f to your computer and use it in GitHub Desktop.
Git Updating Fork
# 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