请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

明明在.config中有【user】。。。

$ git commit -am 'test'

*** 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@lenovoG510.(none)')

正在回答 回答被采纳积分+3

1回答

Rosen 2017-07-19 09:30:15

确认下配置文件是不是放到用户目录下了,还有检查文件名,.gitconfig

0 回复 有任何疑惑可以回复我~
  • 提问者 乘风破浪z #1
    老师,.gitconfig中的[user]配置中的email与ssh-keygen -t rsa -C 
      “xxx@mail.com”中的email是统一个吗?
    回复 有任何疑惑可以回复我~ 2017-07-19 10:46:10
  • 提问者 乘风破浪z #2
    $ git clone git@git.oschina.net:happymmallzxz/mmall-fe.git
    Cloning into 'mmall-fe'...
    The authenticity of host 'git.oschina.net (218.11.0.86)' can't be established.
    ECDSA key fingerprint is SHA256:FQGC9Kn/eye1W8icdBgrQp+KkGYoFgbVr17bmjey0Wc.
    Are you sure you want to continue connecting (yes/no)?
    Host key verification failed.
    fatal: Could not read from remote repository.
    
    Please make sure you have the correct access rights
    and the repository exists.
    
    就是下不来...
    回复 有任何疑惑可以回复我~ 2017-07-19 11:30:10
  • Rosen 回复 提问者 乘风破浪z #3
    是要用同一个邮箱
    回复 有任何疑惑可以回复我~ 2017-07-19 12:38:23
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号