其他一切似乎都可以使用SSH密钥,但当我这样做时:
git commit -m "message"
它给了我:
*** 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: empty ident name (for <COMPUTER_NAME>) not allowed
正如我所说的,除了提交之外,其他所有功能,git add、git push、git pull都按预期工作(git push/pull要求SSH身份验证)。
我已经查过了。git/config文件,以确保它是为SSH设置的,并且实际上是。