vscode Git:failed to execute git

在vscoad中选择全部提交时候提示 Git:failed to execute git
在git日志中会看到这么一行错误信息 empty ident name (for <XXXXXX.com>) not allowed (XXXXXX为你的邮箱)
出现这个错误的原因是:git没有设置用户信息
解决方案:
设置user.email和user.name
$ git config --global user.name "XXXXXX"(设置你的用户名)
$ git config --global user.email "XXXXXX.com" (XXXXXX为你的邮箱)
重新提交

猜你喜欢

转载自www.cnblogs.com/feipeng8848/p/9581222.html
今日推荐