PULL: WHY KEEPS ASKING FOR password??
Asked by Mike Coppola:

I have been struggling with this problem for 2 hours now....a when I try to pull, SourceTree asks for my password, this never used to happen. I enter the password multiple times and finally I get the error below. Is there some reason why SourceTree cannot find what it is looking for in the keychain and HOW DO I FIX THIS??

git -c diff.mnemonicprefix=false -c core.quotepath=false fetch [https://mikecoppola16@bitbucket.org/mtldigitalservicesgroup/oracea_ios_2013_poa2_salesaid](https://mikecoppola16%40bitbucket.org/mtldigitalservicesgroup/oracea_ios_2013_poa2_salesaid) git: 'credential-osxkeychain' is not a git command. See 'git --help'. 2013-04-05 11:34:10.081 Askpass\[54107:707\] Error (internetKeychainItemForServer:withUsername:path:port:protocol:) - The specified item could not be found in the keychain. git: 'credential-osxkeychain' is not a git command. See 'git --help'. From <https://bitbucket.org/mtldigitalservicesgroup/oracea_ios_2013_poa2_salesaid> \* branch HEAD -\> FETCH_HEAD git -c diff.mnemonicprefix=false -c core.quotepath=false pull [https://mikecoppola16@bitbucket.org/mtldigitalservicesgroup/oracea_ios_2013_poa2_salesaid](https://mikecoppola16%40bitbucket.org/mtldigitalservicesgroup/oracea_ios_2013_poa2_salesaid) master git: 'credential-osxkeychain' is not a git command. See 'git --help'. 2013-04-05 11:34:17.142 Askpass\[54139:707\] Error (internetKeychainItemForServer:withUsername:path:port:protocol:) - The specified item could not be found in the keychain. git: 'credential-osxkeychain' is not a git command. See 'git --help'. From <https://bitbucket.org/mtldigitalservicesgroup/oracea_ios_2013_poa2_salesaid> \* branch master -\> FETCH_HEAD error: Your local changes to the following files would be overwritten by merge: development/app/view/1-4/Page_1-4.js Please, commit your changes or stash them before you can merge. Aborting Updating 5856aa3..17713ac Completed with errors, see above


Answers:
author: Mike Coppola
body: Here are the steps, written clearly for anyone, like myself who is new to Git and SourceTree:

1. I reinstalled git by going here:

<https://help.github.com/articles/set-up-git#platform-mac>

2. I verified credential-osxkeychain IS installed by executing this command at the Terminal:

mtnetl-nmx3874:\~ michael.coppola$ git credential-osxkeychain

Usage: git credential-osxkeychain \<get\|store\|erase\>

3. From the Terminal: execute this line:

ln -s /usr/local/git/bin/git-credential-osxkeychain /Applications/SourceTree.app/Contents/Resources/git_local/bin/git-credential-osxkeychain  
This will link the git-credential-osxkeychain to SourceTree via the git_local/bin directory  
It seems I still have to input my password a couple times before SourceTree pulls or pushes , but at least it works now.....


author: Naeem Bhatti
body: Not working at all, when i press pull it ask me 2 times for the password

```
git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree fetch origin 2014-05-06 12:26:41.681 git-credential-sourcetree[5540:507] Error (internetKeychainItemForServer:withUsername:path:port:protocol:) - The specified item could not be found in the keychain.
```


author: Radu Dumitriu
body: `git-credential-osxkeychain is nowhere to be found. You must find it (if not exists, reinstall) and maybe symlink it like:`  
`ln -s /usr/local/git/bin/git-credential-osxkeychain /real/path/to``/git-credential-osxkeychain`

comments: author: Radu Dumitriu
body: ```
It's all in there

curl -s -O \ http://github-media-downloads.s3.amazonaws.com/osx/git-credential-osxkeychain# Download the helperchmod u+x git-credential-osxkeychain

sudo mv git-credential-osxkeychain `dirname \`which git\``

git config --global credential.helper osxkeychain

Do you need more ?
```


author: Radu Dumitriu
body: you mean git ? <https://help.github.com/articles/set-up-git#platform-mac>


author: Mike Coppola
body: I'm sorry but I don't undertsand all the comand line entries you just wrote. Is there a packge installer?


author: Mike Coppola
body: How do I reinstall it?


author: Mike Coppola
body: You said reinstall "git-credential-osxkeychain" ...how do I reinstall that?


author: Radu Dumitriu
body: Mike, I'm curious: why did you buy a Mac ?


author: Mike Coppola
body: 1. I reinstalled git by going here:

<https://help.github.com/articles/set-up-git#platform-mac>

2. I verified credential-osxkeychain IS installed by executing this command at the Terminal:

mtnetl-nmx3874:\~ michael.coppola$ git credential-osxkeychain

Usage: git credential-osxkeychain \<get\|store\|erase\>

3. SourceTree still prompts me for a password and I get the same orginal error as my question states.

Now what step do I take?


Tags: keychain

password