Github clone button


I used to click on github "Clone in Mac" button to open SourceTree. In this way I saw automatically the window to add a repository with Source Path already filled. I've removed my account on github and I've created a new one. Everything works but the button on github doesn't work anymore, now it opens I don't know, it's something that I've to fix in Preferences?

2 answers

1 accepted

I believe GitHub doesn't actually send the correct URL until you've logged in to your account using GitHub for Mac at least once. I believe they do this to try to detect that you've got GitHub for Mac installed before giving you the apporpriately formatted clone URL. They store this flag per user account which is why it's stopped working when you created a new account. Once you've logged in with that account in GitHub for Mac once, they will set that flag for your new user and you'll get the clone URLs that SourceTree can then intercept. Unfortunately we have no control over this because they choose when to expose the clone URL for you to click.

Yes, it works! Thank you very much. Now I can use SourceTree as before.

hmm.. this used to work for me (don't know when it stopped working - not on this computer I guess), but I've just:

  • installed Github-mac
  • signed in
  • cloned a random repo

but I don't know how to intercept the protocol… couldn't get github-mac:// to open in sourcetree until I installed:

Works a treat now, thanks!

This has been bugging me for a while but I just got around to looking into it. It wasn't easy to find this info. You should add this to your FAQ or in the Preferences where this option is set, create a help ? icon that shows a hint window with this info or a link to this post.

Suggest an answer

Log in or Join to answer
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

273 views 0 3
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