1.错误代码:
Commit failed - exit code 128 received, with output: '*** Please tell me who you are.
Run
git config --global user.email "you@example.com"
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)')'
1.2 解决方法:
在项目的根目录下有一个隐藏文件夹–.git,里面有一个config文件,利用记事本或什么什么的打开它,在文件的最后添加下面的代码:
xxx换成自己的名字和邮箱地址,然后保存文件,再去提交!
[user]
name = xxx
email = xxx
2.1 错误代码:
github:Commit failed - exit code 1 received
2.2 原因
因为这个项目是在github上clone下来修改的,现在提交到我的仓库,但项目还包含着之前别人的github仓库信息,信息在.git文件夹。
2.3 解决方法
把隐藏文件显示出来,然后删除隐藏文件夹
win10操作:查找–>勾选“隐藏的项目”