Why can I not switch branches?

后端 未结 7 1071
故里飘歌
故里飘歌 2020-12-13 23:29

I\'m trying to switch branches in git but I\'m getting this error message:

error: you need to resolve your current index first

I\'m using g

相关标签:
7条回答
  • If you don't care about the changes that git says are outstanding, then you can do a force checkout.

    git checkout -f {{insert your branch name here}}

    0 讨论(0)
提交回复
热议问题