本地提交到github时出现错误

版权声明:本文为博主原创文章,转载请注明出处. https://blog.csdn.net/springyh/article/details/82946873

错误如下:

Commit failed - exit code 128 received, with output: '*** Please tell me who you are.
 
Run
 
  git config --global user.email "[email protected]"
  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: empty ident name (for <>) not allowed'

解决:找到隐藏目录.git/config

添加如下命令即可:

[user]
    name = github的用户名
    email = 注册github的邮箱

猜你喜欢

转载自blog.csdn.net/springyh/article/details/82946873
今日推荐