git出现fatal: unable to auto-detect email address (got ‘用户@PC机.(none)’)

阅读 44

2022-01-11

git出现fatal: unable to auto-detect email address (got ‘用户@PC机.(none)’)

解决方法:

  1. cd .git(进入git中的.git文件夹)找到config

  2. vim config, 按i进入编辑模式

  3. 在后面添加;

[user]
    email = your email
    name = your name

ps:以上的email和name随便自己设置

  1. 退出并保存即可

精彩评论(0)

0 0 举报