Git force sync branches
2019-11-06 本文已影响0人
JaedenKil
Forcing sync branches is not recommended!
- Force the remote branch be the same as the local branch:
git push -f origin master
- Force the local branch be the same as the remote branch:
git reset --hard origin/master