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
git push -f origin master
git reset --hard origin/master