当我尝试git fetch或任何其他命令时,我会收到错误。
10:35:18.905: [DocGen] git -c core.quotepath=false pull --progress --no-stat -v --progress origin master
Permission denied, please try again.
Permission denied, please try again.
git@xxxx.githost.io: Permission denied (publickey,password).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
问题是PhpStorm没有问我id_rsa密钥。
如果我在命令行中执行此操作:
C:\work_dev\Project (master)
λ git -c core.quotepath=false pull --progress --no-stat -v --progress origin master
Enter passphrase for key '/c/Users/Username/.ssh/id_rsa':
From xxxx.githost.io:certification/DocGen
* branch master -> FETCH_HEAD
= [up to date] master -> origin/master
Already up-to-date.
这是在我更新PhpStorm之前的工作,当我试图恢复使用旧版本时知道它也不起作用。