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

Sourcetree push gets stuck forever, but terminal works

My Sourcetree "Push" button doesn't work anymore for one of my projects.
When I click it, it gives me the usual following log, but then the green bar just hangs forever (even if I'm just pushing 1 light tst.txt):

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks push -v --tags origin master:master
Pushing to

This is happening specifically to one GitHub git repository, I have tried using different credentials settings / removing and re-adding, (from basic to oauth), but it's hard think this can be the problem when other repos with the same credentials are working fine.

Weirdly, if I copy the same command to the terminal, it asks me for the credentials 3 times, and then it just works and pushes... makes me think it's really some configuration in Sourcetree's credentials that is bugged, but I can't figure what. Any ideas?

2 answers

On Windows, I have the exact same problem and I haven't found a solution yet. I need LFS so I can't use your solution, and it's not caused by the URL problem that have raizen87, so I'm kinda stuck using terminal or switching for another git desktop client.
Hopefully the Sourcetree dev team will address this problem?

I have the same problem and don't solution. I try everything and nothing works....

Hi! It's been a while, so I don't remember exactly what solved my problem, but I think there was some activated option for LFS that shouldn't be enabled (I'm not using LFS, and for some reason it was activated) - If I'm not mistaken, I solved the problem by deactivating it.

Hi, thanks but yor answer, but i need lfs. And this not my problem. But i resolve the problem adding user into URL settings. My URL is "https//", but i have diferent user in github that is a team of principal user. My change is "" into settings. I don't know works but works XD. I see this configuration in my Mac, because the problem was in windows.

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...

60,927 views 127 26
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