Cloning a git repo succeeds with the command line, but fails with a git GUI client (e.g. SourceTree)

时光怂恿深爱的人放手 提交于 2019-12-19 11:33:42

问题


I've set up a git user on a Mac OSX 10.7 system. In the git user's root, I've created a repositories folder and initialized a bare git repo named test.

So far so good. Now, I clone the repo from a PC on the same network as the Mac with

git clone git@mac:repositories/test.git

This succeeds. I can then, push and pull from this repo. All looks good.

But, when trying to do the same thing with Atlassian SourceTree - a GUI git client - this fails:

This is not a valid source path / URL

Anyone an idea what I might be doing wrong?


回答1:


In this case you do not need a user name so the "Source Path/URL" entry is just the path repositories/test.git You would see this by hitting the button to the right which gives an open file dialog.

A URL might work but that would be of a form protocol::user@address/path and you would have to have a server running on the machine to respond to the request (in this case a git or http server)



来源:https://stackoverflow.com/questions/15548200/cloning-a-git-repo-succeeds-with-the-command-line-but-fails-with-a-git-gui-clie

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