Skip to content

Instantly share code, notes, and snippets.

@kylos101
Created April 5, 2020 20:19
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 kylos101/fd769a8892b2fb2c8d635ff9becdae96 to your computer and use it in GitHub Desktop.
Save kylos101/fd769a8892b2fb2c8d635ff9becdae96 to your computer and use it in GitHub Desktop.
Update a fork
# Assumes you have a remote defined as upstream like this...
# git remote add upstream https://github.com/org/source-of-your-fork.git
# Update your fork...
git checkout master && git fetch upstream && git rebase upstream/master && git push origin master --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment