Why can I not switch branches?

后端 未结 7 1120
故里飘歌
故里飘歌 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条回答
  •  孤街浪徒
    2020-12-14 00:14

    You need to commit or destroy any unsaved changes before you switch branch.

    Git won't let you switch branch if it means unsaved changes would be removed.

提交回复
热议问题