问题
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