SourceTree GUI can't push, terminal can push

心已入冬 提交于 2019-12-01 01:18:57

问题


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 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.

What I'm doing wrong?


回答1:


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

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



来源:https://stackoverflow.com/questions/29388207/sourcetree-gui-cant-push-terminal-can-push

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!