kidcapital
kidcapital

Reputation: 5174

Sourcetree constantly asks for authenticate with Mercurial (Kiln)?

I'm running Lion latest with SourceTree.

I tried to connect to a Fogbugz Kiln reponsitory, which succeeded, but whenever I PUSH or PULL Sourcetree consistently asks me for a username and password despite I saved it to my KeyChain. Anyone have any insight to this issue?

Upvotes: 45

Views: 21724

Answers (8)

Roger
Roger

Reputation: 2135

Wasted 90 minutes on all this. Sourcetree simply would not let me remove my account and add it back. Finally uninstalled and downloaded an older version:

https://www.sourcetreeapp.com/download-archives

ver 1.10 fixed all my issues:

Upvotes: 0

Francis F
Francis F

Reputation: 3285

Open terminal and Type git config --global credential.helper osxkeychain Allow access when asked. Make a pull from sourcetree, you may have to enter password one more time after that it wont ask again from next time onwards.

PS: This solution is only for Mac OS

Upvotes: 10

Jinghan Wang
Jinghan Wang

Reputation: 1137

I met the same problem, what I did is

  1. Open Keychain Access
  2. Find the corresponding keychain entry for your repo, and double click to open (e.g. the entry with name github.com)
  3. Click the 'Access Control' tag
  4. Select 'Allow all applications to access this item' and save changes

This solves the problem (or at least for me), but in some sense makes it less secure though.

Upvotes: 1

Peng Tao
Peng Tao

Reputation: 41

I had the same problem and it troubled me for a long time, but I found a solution:

  1. Go to terminal in your project folder.
  2. Run #git pull
  3. Input your username and password
  4. Go back to sourceTree and run Fetch or Pull, it does not ask for your password again.

Upvotes: 4

codeepic
codeepic

Reputation: 4102

I occasionally run into the same problem. None of the methods listed here actually helped me out, but after I restart my computer, I am again able to do as I please with SourceTree and git.

Nevertheless this issues is annoying as hell and seeing that Atlassian haven't resolved it in over 3 years, since the original question was posted, is even more unnerving.

Upvotes: 8

Joan P.S
Joan P.S

Reputation: 1573

I had the same and I fixed it using the system git instead of the embedded one:

Settings -> git -> Use System git

Upvotes: 29

germangti
germangti

Reputation: 967

This helped me solve this issue in a mac:

  1. Open the Hosted Repositories window by clicking View > Show Hosted Repositories or Command + Shift + H.
  2. Click Edit Accounts
  3. Double-click on your account
  4. Click Set Password

Upvotes: 39

Kieran Senior
Kieran Senior

Reputation: 18220

As said by Laurens in the comment, you can file an issue with us via jira.atlassian.com (project SRCTREE). It shouldn't constantly ask for authentication if you've saved your credentials to the keychain unless there's an authentication problem.

Cheers

Upvotes: 0

Related Questions