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
本文标题:Git force sync branches
本文链接:https://www.haomeiwen.com/subject/hamubctx.html
网友评论