Missed Team ’24? Catch up on announcements here.

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

How do I clone a GIT remote repository ?

Yasser Chemaytilly August 15, 2012

I am trying to add a GIT remote repository (clone it) using SourceTree

in command line I would use

git clone git@repos.xxx.com:bbbb

to clone the bbbb repository from my company's GIT server

Is it possible in SourceTree? How ?


1 answer

1 accepted

0 votes
Answer accepted
stevestreeting
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.
August 15, 2012

Sure, just copy the URL and paste it into the Clone box (Cmd-N, File > New, or the Add Repository toolbar button on the Bookmarks window). Or you can drag & drop any clone link from a browser into the bookmarks window too.

Yasser Chemaytilly August 15, 2012

Thanks for your quick answer Steve.

What would be the URL for a GIT repository ? when you're in command line you don't use URLs..

again this is proper hosted GIT and not GITHUB or something similar

what would be the URL the below repository ?

git clone git@repos.xxx.com:bbbb


sorry this maybe very basic but I'm not a big expert on GIT yet - that's why I was looking to use SourceTree to help me use it

stevestreeting
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.
August 15, 2012

The bit after 'git clone' is the URL, I know it doesn't look like a HTTP URL but effectively that's what it is - that's a git-specific URL.

In fact in the latest SourceTree (1.5.3) if you pasted the entire command including the 'git clone' into the Clone window, SourceTree would figure it out and strip off the 'git clone' part for you. We're friendly like that :)

Yasser Chemaytilly August 15, 2012

thanks ! worked perfectly..

I do think if there was a little hint or something it would make things easier

I asked other people and they all had cloned the repos in command line then used sourcetree

thanks again

Alexander Belchenko January 9, 2013

I should say that using File - New is not obvious for clone. Why there is no dedicated Clone menu item?

stevestreeting
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.
January 9, 2013

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events