How do I clone a GIT remote repository ?

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

in command line I would use

git clone

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

Is it possible in SourceTree? How ?

1 answer

1 accepted

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.

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

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

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 :)

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

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

Suggest an answer

Log in or Join to answer
Community showcase
Jason Wong
Published Tuesday in Agility Beta

Welcome to agility

Every team in the world is unique, and so   Atlassian believes   that each and every team's best way of working  needs to  be molded to their unique circumstances  – ...

445 views 6 16
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot