Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

git clone git@foo.bar.com:abcd

joshua smith September 17, 2014

Hi,

I've used git bash so far and am now trying sourcetree.  To clone my repository via command line (git bash), I used the format

git clone git@foo.bar.com:abcd

The repository is not on github or bitbucket.

How do I use these same clone parameters in sourcetree to clone that repository?

Thanks

1 answer

0 votes
Balázs Szakmáry
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 17, 2014

In order for the SourceTree clone dialog (opens with CTRL+N) to accept the address as valid, it needs to start with the protocol, e.g. http://git@foo.bar.com:abcd

joshua smith September 17, 2014

but that's not a valid http url.

At the git reference - http://git-scm.com/docs/git-clone

it states ..

An alternative scp-like syntax may also be used with the ssh protocol:

  • [user@]host.xz:path/to/repo.git/

So it's a valid command line syntax. 

So sourcetree doesn't support that?

Seth
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 17, 2014

So it sounds like you want the ssh:// protocol instead of http:// or https://

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events