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为你的邮箱)
重新提交

posted @ 2018-09-03 21:41  feipeng8848  阅读(6341)  评论(0编辑  收藏  举报