For quite a long time now, I've been using a Git repository hosted on a Hostgator server, accessing it through SSH and a password. I had been able to access this just fine on both my Mac and my Windows computers, but after several months, I updated to the latest versions, and suddenly I no longer can access the repository from Windows.
It fails, telling me it cannot read from the remote repository. It does NOT prompt me for a password, nor were there any Accounts listed in the Tools/Options/Authentication section.
So I tried to add an account for it -- but the only "Hosting Entry" type which actually allows entering a Host URL was "Bitbucket Server". Still, I put that in, set my preferred protocol to SSH, and entered the credentials and password... but when it tried to authenticate it claimed that only HTTP or HTTPS were allowed.
So now I'm stumped - did something change to remove password support for SSH in the more recent versions? If not, how do I get it to prompt?
Also, now, it's showing an entry under the Account for the invalid Bitbucket Server entry -- and the "Delete" button isn't actually removing it. How do you get rid of that?
Firstly I'm afraid the Hosted Accounts will only support the specified server types. (I'm impressed it saved the credentials if it wasn't one of those instances).
Secondly we did fix some account deletion issues in v188.8.131.52, if you aren't using that I would suggest updating.
Ultimately the account credentials are stored in the Windows Credential Manager and can be deleted from there.
With respect to your SSH auth error. Sourcetree relies on Git and the Git Credential Manager to handle the actual authentication with remote servers of all types.
If you run git from the Sourcetree terminal, opened using the button in the upper right of a repository tab' and try and do a git pull, I would expect you to be challenged for a username/password by a simple GUI. Does this happen?
If you run the same git pull twice are you prompted twice?
Can you also let us know what version of git and Git Credential Manager you are using?
> git version
> git credential-manager version
I am using 184.108.40.206 already - that's the version all of this was happening with. I was able to delete the entries in the Windows Credential Manager, however.
Doing a git pull from Terminal does in fact prompt for a password each and every time you do it. (Side note - is there any way to change the commit/merge editor choice from vi to something more usable? Ugh.)
Git is version 2.11.0.windows.1
Git Credential Manager for windows is version 220.127.116.11
That GCM is old its up to v1.12.0 now which has much better support for Bitbucket amongst other things.
If you are using system git I would recommend downloading and installing the latest Git, 2.15.0 at the time of writing which will have a much more uptodate GCM. Or if you are using the embedded Git, use the option in Tools/Options/Git tab in Sourcetree to update to the latest embedded version.
In Sourcetree you can set the diff/merge program that Sourcetree will use. See the Tools/Options/Diff tab. Be aware you need to install 1 of the tools manually your self first, Sourcetree does not bundle them.
I personally use KDiff3 and find it vey easy to use.
Okay, I've updated my embedded Git which brings it up to version 2.14.1.windows.1, and Git Credential Manager up to version 1.12.0. But it still doesn't fix the lack of a password prompt when trying to access the remote server from Sourcetree.
I can work around this problem for now by using the Terminal to do git push and git pull requests (since the command line always correctly prompts for a password...).
But it's pretty awkward to do it that way -- any further suggestions?
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...
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!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG