Git切换分支时报错:you need to resolve your current index first

Posted JavaEdge.

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Git切换分支时报错:you need to resolve your current index first相关的知识,希望对你有一定的参考价值。

问题

切换到其它分支时报错:you need to resolve your current index first,即有冲突的文件没有解决。

解决方案

git reset --merge

以上是关于Git切换分支时报错:you need to resolve your current index first的主要内容,如果未能解决你的问题,请参考以下文章