美文网首页Linux
Git force sync branches

Git force sync branches

作者: JaedenKil | 来源:发表于2019-11-06 15:21 被阅读0次

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 force sync branches

    本文链接:https://www.haomeiwen.com/subject/hamubctx.html