fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
之后,
ssh-add
不再起作用,会打印出:Error connecting to agent: Bad file descriptor
这很奇怪,因为此时
$SSH_AUTH_PORT
和 $SSH_AGENT_PID
都没有改变,我已经尝试过export
以确保它们没有变化。在同一终端会话中启动新的 SSH-AGENT 并添加我的密钥可以正常工作,但再次尝试git fetch
则会产生相同的影响。Git 在做什么与 SSH 代理有关的操作?