Last active
April 8, 2021 12:55
-
-
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)
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
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