Skip to content

Instantly share code, notes, and snippets.

@ColinFay
Last active October 9, 2020 15:59
Show Gist options
  • Save ColinFay/13b8a0fbd9446532644998c0886e925d to your computer and use it in GitHub Desktop.
Save ColinFay/13b8a0fbd9446532644998c0886e925d to your computer and use it in GitHub Desktop.
Keep your fork up to date
# To do the first time
# git remote add upstream https://github.com/original-repo/goes-here.git
git fetch upstream
git rebase upstream/master
git push origin master --force
@ColinFay
Copy link
Author

ColinFay commented Oct 7, 2020

And alternatively :

alias rebasefork="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