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?
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)
You may need to look for the Port in your source Path/URL. I corrected mine by adding port something like this.. xxxxxxxx.com:YYYY/xxxxx
where xxx... is the usual source Path and YYYY is the Port Number.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.