Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Cannot clone a repository from Github using Sourcetree, embedded git command line works perfectly.

One of our repositories in Github does not clone when using Sourcetree. We do not receive any meaningful error in Sourcetree. Other repos in the same organisation are fine, permissions seem fine on github. This is happening on multiple systems in our organisation. We also get an error for "templates not found" but this does not seem to affect other repos. Using SourceTree and some earlier versions from December.


Using the same command in the git embedded commandline from Appdata\local\atlassian\sourcetree\git_local\cmd\ the repo pulls down correctly with no errors.


Any help would be greatly appreciated, I'm wondering whether it is a bug in SourceTree but cannot seem to find any location where I can log this.

4 answers

Just keep it running for 5-10 minutes. It will clone eventually.


that's right. 5-10 minutes of any minimal sign of life, but finally works

Remove all accounts in Tools>Options>Authentication.

Now Go to Git tab and Click on Update Embedded git.

Then restart Sourcetree.

Now Click use Embedded git and restart again.

Now try to clone the git repository and type your ID and password when asked and you should see the cloning happens now..

If it still shows the error then switch to System git in git tab. Please update system git version to the latest when you do so

There are some possible solutions in answers here:

Hi Seth, this has resolved the warning regarding the templates, but does not solve the lack of error message. Using System Git we get a bit more feedback, basically the clone fails at 73% with no actual error message.

Sounds strange. If nobody else has any helpful ideas here, you might file a bug report on, which should get the attention of Atlassian staff. In the meantime, are you cloning often? If I was having your issue, I'd just clone via command line and move on. It's not an operation I've performed in months.

We've had it on two different repositories in our testing today. Have filed a bug report, thanks!

I change the embeded git to system git . it works.

Like jmcerrejon likes this

change the Auth type from OAuth to Basic?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Sourcetree

Bug Fix: Sourcetree for Windows authentication error when updating to app password

Hello Sourcetree users!!! With the recent removal of Bitbucket Cloud account passwords for app passwords (please see our Bitbucket Cloud community post for details on why we made this change for se...

61,939 views 127 27
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you