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

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相关的密码去修改就好了:

重装系统git无法更新:Couldn't save uncommitted changes._第1张图片

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

你可能感兴趣的:(重装系统git无法更新:Couldn't save uncommitted changes.)