2
我使用SSH密钥为git,我添加了ssh密钥并检查它是否成功验证。但我仍然无法提交代码“***请告诉我你是谁。”当使用SSH密钥
$ eval "$(ssh-agent -s)"
Agent pid 2599
$ ssh-add ~/id_rsa
Identity added: /home/vagrant/id_rsa (/home/vagrant/id_rsa)
$ssh -T [email protected]
Hi my-git-username! You've successfully authenticated, but GitHub does not provide shell access.
但我不能做承诺
$ git commit -m "Develop Dockerfile for shopContainer"
*** 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 '[email protected](none)')
这是先前在覆盖[设置GIT中](https://help.github.com/articles/set-up-git/#setting-up-git) – Stefan