[英]SourceTree terminal can't push, GUI can 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.
推入 GUI 时我没有遇到任何问题。
我使用 ssh 身份验证。 关闭登录面板后每 3 分钟弹出一个登录面板,我不确定它是否正常。
我做错了什么?
您可以检查密钥是否已加载到代理,如果没有,则手动加载它们。 这与 Sourcetree 一起工作得很好。
要检查密钥是否已加载,请使用此命令
ssh-add -l
要加载密钥,请使用此命令
ssh-add <path_to_key>
例如,
ssh-add ~/.ssh/id_rsa
另外,请检查在首选项中添加的帐户和用于克隆匹配协议的远程 URL(均为 ssh)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.