重装系统git无法更新:Couldn't save uncommitted changes.

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/menggudaoke/article/details/81162299

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

原因:

第一,凭据错误:如果输错了git用户名密码,无法再次修改,可以去 控制面板-用户账户-凭据管理器-windows凭据找到git相关的密码去修改就好了:

第二:如果此时还不能pull你的项目,报上面的Couldn't save uncommitted changes错误,你只需要提交一个文件,然后再次pull就能正常pull了!

猜你喜欢

转载自blog.csdn.net/menggudaoke/article/details/81162299