这个问题与this question.正好相反
我在 push 终端时得到了这个:
git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags origin master:master Pushing to ssh://xxxxx@git.mydomain.de/srv/git/MyFolder/MyProject.git
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
push GUI 时我没有遇到任何问题。
我使用 ssh 身份验证。 关闭后每3分钟 pop 一个登录面板,不确定是否正常。
我做错什么了?
最佳答案
您可以检查 key 是否已加载到代理,如果没有,请手动加载它们。这将与 Sourcetree 一起正常工作。
要检查是否已加载 key ,请使用此命令
ssh-add -l
要加载 key ,请使用此命令
ssh-add <path_to_key>
例如。,
ssh-add ~/.ssh/id_rsa
另外,请检查首选项中添加的帐户和用于克隆匹配协议(protocol)的远程 URL(两者都是 ssh)。
关于git - SourceTree 终端无法推送,GUI 可以推送,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54164081/