【问题标题】:SourceTree terminal can't push, GUI can pushSourceTree终端不能推送,GUI可以推送
【发布时间】:2019-01-13 06:11:52
【问题描述】:

这个问题与this question.正好相反

我在推入终端时得到了这个:

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.

在 GUI 中推送时我没有遇到任何问题。

我使用ssh认证。我关闭后每3分钟弹出一个登录面板,不知道是否正常。

我做错了什么?

【问题讨论】:

    标签: git ssh atlassian-sourcetree


    【解决方案1】:

    您可以检查密钥是否已加载到代理,如果没有,请手动加载。这可以与 Sourcetree 一起正常工作。

    要检查是否已加载密钥,请使用此命令

    ssh-add -l 
    

    要加载密钥,请使用此命令

    ssh-add <path_to_key> 
    

    例如,

    ssh-add ~/.ssh/id_rsa 
    

    另外,请检查Preferences中添加的账号和用于克隆匹配协议的远程URL(都是ssh)。

    【讨论】:

      猜你喜欢
      • 2023-03-29
      • 1970-01-01
      • 2020-08-19
      • 2015-05-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-08-06
      相关资源
      最近更新 更多