Author identity unknown *** Please tell me who you are. Run git config --global user.email "you@example.com" 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 'gbf@LAPTOP-LI5V912N.(none)')
时间: 2024-04-26 18:22:48 浏览: 28
这个错误提示是因为你在提交代码时没有设置你的 Git 账户信息。你可以按照提示运行以下命令来设置你的 Git 账户信息:
```
git config --global user.email "你的邮箱地址"
git config --global user.name "你的用户名"
```
其中,`--global` 参数表示设置全局账户信息,如果你只想为当前仓库设置账户信息,可以省略该参数。
设置完成后,再次提交代码应该就不会出现这个错误了。
相关问题
$ git commit -m ‘zq’ Author identity unknown *** Please tell me who you are. Run git config --global user.email "you@example.com" git config --global user.name "Your Name" to set your account's default identity. Omit --global to set the identity o
nly for this repository.
Git is asking you to provide your identity information before you commit your changes. To set your account's default identity, you can run the following commands:
```
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
```
Replace "you@example.com" with your email address and "Your Name" with your name. If you don't want to set a global identity and only want to set it for this repository, you can omit the `--global` flag. After running these commands, you should be able to commit your changes with your specified identity.
'web_automation' ,但初始提交失败: Author identity unknown *** Please tell me who you are. Run git config --global user.email "you@example.com" 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 'ASUS@huang.(none)')
这个错误是由于你在使用Git提交时未设置局的用户信息导致的。你可以按照错误提示中的建议,运行以下两个命令来设置你的用户名和邮箱:
```
git config --global user.name "Your Name"
git config --global user.email "you@example.com"
```
请确保将 "Your Name" 替换为你的名字,"you@example.com" 替换为你的邮箱地址。
如果你只想在当前仓库中设置身份信息而不是全局设置,可以去掉 `--global` 参数,例如:
```
git config user.name "Your Name"
git config user.email "you@example.com"
```
设置完身份信息后,你应该能够成功提交代码到GitHub了。如果还有其他问题,请随时提问。
相关推荐
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)