以下问题: 当我提交东西时,我无法通过单击 GUI 按钮来推送它们 我收到此错误消息:
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.
当我从这个错误消息中复制完全相同的命令并单击“终端”按钮并将其粘贴到那里时,它按预期工作,没有任何错误。
我做错了什么?
最佳答案
我猜 SourceTree 无法从远程存储库读取,因为它无法对您进行身份验证。
确保 SourceTree 可以访问您的 ssh key 。您可以使用 pagent这样做。
关于git - SourceTree GUI 无法推送,终端可以推送,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29388207/