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

Sourcetree Password Issues

Hello,

I'm running Sourcetree 3.0.12 in Win7 and have been recently having password issues. Whenever I attempt to pull from from a remote the Atlasian/Bitbucket/Sourcetree password window appears. I'm using basic/https authentication.

Unfortunately it will not accept my password & username combo, even though it works fine on bitbucket.org and on another mac running Sourcetree.

Any thoughts?

Thanks!

2 answers

1 accepted

0 votes
Answer accepted

Given that the CLI is working, I went to SourceTree -> Options -> Git and changed Git Version = System (was Embedded). That worked!

Not sure what the issue is with SourceTree authentication, but I am back in business.

Thanks for your help!

0 votes
minnsey Atlassian Team Dec 17, 2018

Hi

There have been a series of issues with the Git Credential Manager recently. Please ensure you are using Git 2.19.2/Git Credential Manager 1.18.3, this seems much improved.

Thanks for the tips... I upgraded both but still having issues on one Windows PC. Sourcetree won't accept my username & password, even though I know it is valid if I log into Bitbucket directly or use SourceTree on another PC.

Any further thoughts?

minnsey Atlassian Team Jan 25, 2019

Have you tried taking Sourcetree out of the mix and try a clone/pull/fetch/push from the command line? This simplifies the tools chain, though it should still try and use the same git credentials and mechanisms for managing them 

Thanks for the suggestion. 

git clone https://xxx@bitbucket.org/xxx/xxx.git from the command line works fine using the same credentials that fail in Sourcetree.

Any ideas on next steps? I'm willing to wipe Sourcetree and start with a clean install, but the last time I tried this I don't think it helped.

minnsey Atlassian Team Jan 28, 2019

I would try and ensure command line and Sourcetree are both running the same versions of Git/GCM.

Assuming they are Sourcetree should just pick up and re-use the credentials you successfully used from the command line.

Technically Sourcetree doesn't directly use the Git  credentials, it asks Git to do something and if it needs them Git asks the GCM for credentials, which either returns stored ones or prompts the user for them. The GCM also attempts to validate the credentials before passing them back to Git.

You can see the stored credentials in the Windows Credential Manager, prefixed with 'git:'


Thanks for the suggestion. Is there a way to determine the version of GCM that Sourcetree is using? I can see the version of git it is using, but no mention of GCM.

minnsey Atlassian Team Jan 30, 2019

hi

 

if you see an entry like this in the console output in sourcetree

 

-c credential.helper= -c credential.helper="c:/users/mminns/appdata/local/atlass~1/source~1/git_ex~1/git-cr~1.exe"

 

the sourcetree has detected a bad gcm release and is overriding it with its local copy of 1.17.1

 

if you don't see that sourcetree is relying on git's bundled version. you can detect that by using the terminal and running

 

>git credential-manager version

 

will give you the version the git bundles with it.

if you see an entry like this in the console output in sourcetree

 -c credential.helper= -c credential.helper="c:/users/mminns/appdata/local/atlass~1/source~1/git_ex~1/git-cr~1.exe"

 the sourcetree has detected a bad gcm release and is overriding it with its local copy of 1.17.1

OK - that would appear to be the case for my installation. Any suggestions?

minnsey Atlassian Team Feb 11, 2019

When everything works form the command line, what version of GCM is being used?

>git credential-manager version

?

Git Credential Manager for Windows version 1.18.4

Suggest an answer

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

Sourcetree for Windows - CVE-2019-11582 - Remote Code Execution vulnerability

A vulnerability has been published today in regards to Sourcetree for Windows.  The goal of this article is to give you a summary of information we have gathered from Atlassian Community as a st...

4,902 views 0 12
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