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

Launch SourceTree using hyperlink

Josip Bernat April 2, 2013

Hi,

I have problem with launching SourceTree using hyperlink in HTML.

On my server I have installed git and I store my projects there. Now since I have a lot of projects I would like to make list of them and have buttton that will allow me to clone it using SourceTree with on click. Like BitBucket has button "Clone in SourceTree".

I think I need to use <a> tag with some "itms" that SourceTree recognizes. Does anybody have some code snippet that can help me? I would really appreciate it.

1 answer

1 accepted

1 vote
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.
April 2, 2013

You can use this URL form to trigger a clone in SourceTree (this works on Windows and Mac):

sourcetree://cloneRepo/<URL>

For example:

sourcetree://cloneRepo/https://user@bitbucket.org/youruser/yourrepo

Josip Bernat April 2, 2013

Great!

Thanks!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events