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就会提示你输入账号和密码。

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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM