SourceTree GUI 无法推送,终端可以推送 [英] SourceTree GUI can't push, terminal can push

查看:46
本文介绍了SourceTree GUI 无法推送,终端可以推送的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下问题:当我提交东西时,我无法通过单击 GUI 按钮来推送它们我收到此错误消息:

Following problem: When I commit things, I can't push them by clicking on the GUI push button I get this error message:

git -c diff.mnemonicprefix=false -c core.quotepath=false push -v--tags 起源大师:大师推送到 ssh://xxxxx@git.mydomain.de/srv/git/MyFolder/MyProject.git

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.

当我从此错误消息中复制完全相同的命令并单击终端"按钮并将其粘贴到那里时,它按预期工作,没有任何错误.

When I copy the EXACT same command from this error message and klick on the "Terminal" button and paste it there, it works like expected, without any errors.

我做错了什么?

推荐答案

我猜 SourceTree 无法从远程存储库读取数据,因为它无法对您进行身份验证.

I guess SourceTree can not read from the remote repository because it can not authenticate you.

确保 SourceTree 可以访问您的 ssh 密钥.您可以使用 pagent 来做到这一点.

Make sure that SourceTree can access your ssh key. You can use pagent to do that.

这篇关于SourceTree GUI 无法推送,终端可以推送的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆