GitHub Desktop 错误及解决方法

错误代码:

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: unable to auto-detect email address (got 'Administrator@w310-002.(none)')'

解决方法:

在项目的根目录下有一个隐藏文件夹–.git,里面有一个config文件,利用记事本或什么什么的打开它,在文件的最后添加下面的代码:
xxx换成自己的名字和邮箱地址,然后保存文件,再去提交OK啦!

[user]
name = xxx
email = xxx

猜你喜欢

转载自blog.csdn.net/shensiback/article/details/80256233
今日推荐