git add . 提交报错git config --global user.email “[email protected]” git config --global user.name “Your N

报错信息

*** 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.

fatal: unable to auto-detect email address (got ‘User@LAPTOP-PUF1QNBG.(none)’)

image-20210802175546630

解决方法

在项目中找到.git文件夹,点击找到config文件,用记事本打开config文件添加这些信息就可以了

[user]
    name = xx
    email = xx@xx.com

猜你喜欢

转载自blog.csdn.net/qq_46036214/article/details/119330902