git 推送文件失败
来源:4-6 创建git仓库及克隆、拉取和推送操作

竹鼠10元3只
2018-10-11
老师,我在git这里添加文件说明提示:
*** 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 ‘dahuang@▒▒▒▒▒▒.(none)’)
推送文件提示:
error: src refspec refs/heads/master does not match any.
error: failed to push some refs to ‘git@github.com:LWH1994/AutoTest.git’
请问我哪个步骤错了?
1回答
-
竹鼠10元3只
提问者
2018-10-11
git commit 提交的时候,出现*** Please tell me who you are. git config --global 。。。问题
1 $ git commit -a -m 'v6' 2 3 *** Please tell me who you are. 4 5 Run 6 7 git config --global user.email "you@example.com" 8 git config --global user.name "Your Name" 9 10 to set your account's default identity.11 Omit --global to set the identity only in this repository.12 13 fatal: unable to auto-detect email address (got 'Administrator@WIN-20170405AQW.(14 none)')
解决方案: 见提示就知道, 要您填上你得注册的邮箱和昵称,例如:
1 git config --global user.email "652081631@qq.com"2 git config --global user.name "pys"
___________________________________________________________________________________________
问了度娘,还需要添加你的邮箱和昵称,老师为啥呢?是不是哪里操作不对?
012018-10-28
相似问题