*** Please tell me who you are. git确认用户身份

最近新型肺炎疫情紧张,准备把代码当下来在家办公。当时用git下载主分支marst代码时没有任何问题,一次跑通。当我再一次下载分支代码,报错了如下:

Couldn't save uncommitted changes.
Tried to save uncommitted changes in stash before checkout, but failed with an error.
Couldn't stash file://D:/official/classroom:
*** Please tell me who you are.

Run

git config --global user.email "[email protected]"
git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

unable to auto-detect email address (got '������')

记录一下解决过程:
简单翻译一下,就是远端代码库,不确定你的身份,想确认一下眼神。。
他已经给了解决提示 Run 后边就是解决过程

git config --global user.email "[email protected]" 填写你的 git账号邮箱
git config --global user.name "Your Name" 填写你的 git账号昵称

你可能感兴趣的:(*** Please tell me who you are. git确认用户身份)