idea更新项目时报一下错误
Couldn't save uncommitted changes.
Tried to save uncommitted changes in stash before Update, but failed with an error.stash file://E:/mec-inventory: unable to auto-detect email address (got 'Damai@Damai-PC.(none)')
Cannot save the current index state
需要修改项目下的.git文件夹下的config配置文件,Windows需要显示隐藏文件夹才可见
增加以下内容
[user]
email=your email
name=your name
参考:https://www.cnblogs.com/Traveller-Leon/p/6852680.html
本文介绍了解决IDEA更新项目时出现的stash错误的方法。主要问题是由于无法自动检测到电子邮件地址导致无法保存未提交的更改。解决办法是在项目的.git/config文件中手动添加用户的电子邮件和名称。

485

被折叠的 条评论
为什么被折叠?



