GitHub
(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)')'
解决方法:
在项目的根目录下有一个隐藏文件夹–.git,里面有一个config文件,在文件的最后添加下面的代码:
xxx换成自己的名字和邮箱地址,然后保存文件,再去提交OK啦!
[user]
name = xxx
email = xxx
(2)显示隐藏文件夹–.git
如何显示隐藏的文件呢?
1.选择“工具”—>“文件夹选项”—>“查看”
2.在“高级设置”里面,选中“显示隐藏的文件、文件夹和驱动器”,就可以了啦!
3.操作成功之后,我们就可以看到.git文件了