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

This widget could not be displayed.

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 widget could not be displayed.

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 Sign up to answer
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

872 views 2 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