git报错:Committing is not possible because you have unmerged files. 解决方法

git报错:Committing is not possible because you have unmerged files. 解决方法

  • git reset HEAD // 回退暂存区内容到工作目录
  • git reset HEAD --soft // 回退提交到暂存区
  • git reset HEAD --hard // 回退提交 放弃变更 (慎用)

根据注释信息,使用相应回退命令。
之后进行中断的操作(add、commit、push)

猜你喜欢

转载自blog.csdn.net/qq_37040886/article/details/105865138