Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Unable to clone, fetch or push to a private repository in Github

Hi all,

I'm unable to do anything with my private repositories in GitHub. I'm can work with no porblems with public ones.

I'm able to see the repositories from Sourcetree but if I try to clone a prvate one says error in login. This is happening only with private ones.

I have similar scenario trying to push to github. With Public is working fine but with private I have the same authentication error.

I'm running version

Does anyone what the problem can be?

2 answers

I have the same problem

I can see all repositories and clone only public repo
I connected Sourcetree to GitHub using token and ssh key.
Anyone knows Why is it going and how to fix it?
Снимок экрана 2021-04-23 в 20.32.45.pngСнимок экрана 2021-04-23 в 20.36.06.png

0 votes
Ana Retamal Atlassian Team Nov 06, 2017

Hi Ramon, can you confirm you've followed the steps at Connect your Github account already?

Was it previously working for you, or is this the first time you're setting this up?


Can you send us a screenshot of the error you get?

Best regards,


I've been working with problems, and suddenly it stopped working after the update.

I tried many different things, even setup 2 way Auth.

The problem is solved now after following a suggestion in the questions about turning Git to system one and back again to embedded one. After this, everything began to work again.


I switched in preferences between the built in git and the OS git, and back again to no avail. For me everything works including push from a terminal command line, and everything except push works from within SourceTree. It had previously worked. I am using 2FA.

If you are using 2FA with your GitHub account, you can use GitHub token instead of the password to login to your GitHub account, it works fine for me.

Reference: Two-Factor Authentication (2FA) with GitHub in SourceTree

Suggest an answer

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

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

7,233 views 5 14
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