git取消合并和 强制提交和强制覆盖本地

  取消合并

  git merge --abort

  push强制提交

  git push -f origin master




git pull 强制覆盖本地
// 从远程仓库下载最新版本
git fetch --all 
// 将本地设为刚获取的最新的内容
git reset --hard origin/master


原文地址:https://www.cnblogs.com/todarcy/p/12295777.html