Skip to content

Instantly share code, notes, and snippets.

@remlapmot
Last active April 8, 2021 12:55
Show Gist options
  • Save remlapmot/fdf1db471206d8360e4d4799d609e138 to your computer and use it in GitHub Desktop.
Save remlapmot/fdf1db471206d8360e4d4799d609e138 to your computer and use it in GitHub Desktop.
Sync a forked repo with the upstream master branch - both locally and on GitHub (origin)
git fetch upstream
git checkout master
git merge upstream/master
git push origin master
# git reset --hard upstream/master
# git push origin master --force
# or
git pull upstream master
git push origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment