假设要用develop覆盖master分支,如下操作
git checkout master git reset --hard develop //先将本地的master分支重置成develop git push origin master --force //再推送到远程仓库
假设要用develop覆盖master分支,如下操作
git checkout master git reset --hard develop //先将本地的master分支重置成develop git push origin master --force //再推送到远程仓库
转载于:https://www.cnblogs.com/lhfcws/p/7027244.html