git - SourceTree GUI 无法推送,终端可以推送

标签 git atlassian-sourcetree

以下问题: 当我提交东西时,我无法通过单击 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/

相关文章:

git - 设置远程使用指定端口进行 ssh

macos - SourceTree filemerge 立即退出并创建 4 个文件。如何解决?

atlassian-sourcetree - 我可以使用 SourceTree 中嵌入的 hg 命令行吗?

git - 在 VB6 中使用 Git

使用 SourceTree 登录 Git 失败,想改为使用 SSH 创建登录

windows - SourceTree 没有完全卸载

git - 如何从以前的 Git 提交中删除文件

linux - Git 自动补全看起来很奇怪(而且只有一半功能)

Git rebase 并发症

git - 如何执行本地提交的 git rebase