Couldn't save uncommitted changes.

关于idea切换分支报错的问题。

Couldn't save uncommitted changes.
Tried to save uncommitted changes in stash before Update, but failed with an error.
stash file://E:/Users/zkj/IdeaProjects/mps: unable to auto-detect email address (got 'zkj@DESKTOP-8HT89AC.(none)')
Cannot save the current index state

原因是你没有输入账号和密码。你可以修改当前分支一个文件,然后再提交一下,idea就会提示你输入账号和密码。

然后再切换分支就没有问题了。

posted @ 2018-03-13 12:58  夜里挑灯看剑  阅读(9534)  评论(0)    收藏  举报