Couldn't save uncommitted changes / unable to auto-detect email address错误

时间:2022-09-24 09:13:07

错误提示:

Couldn't save uncommitted changes.
			Tried to save uncommitted changes in stash before Update, but failed with an error.
			stash file://D:/Project_local_address: fatal: unable to auto-detect email address (got 'xxx@xxx.(none)')
			Cannot save the current index state
简单的说就是你的git没有配置global email地址或者是一个错误的email

你可以通过git --config user.name "your's email"设置一个邮箱,然后重新更新就OK了