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

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. 退出并保存即可


版权声明:本文为a1991376352原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。