Py学习  »  Git

Git Commit在WSL2中请求凭据而不是SSH

Marco Gonçalves • 3 年前 • 1245 次点击  

其他一切似乎都可以使用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设置的,并且实际上是。

Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/130141
 
1245 次点击  
文章 [ 1 ]  |  最新文章 3 年前