Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

PULL: WHY KEEPS ASKING FOR password??

Mike Coppola April 4, 2013

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

3 answers

1 accepted

2 votes
Answer accepted
Mike Coppola April 4, 2013

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

0 votes
Naeem Bhatti May 5, 2014

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.

0 votes
Radu Dumitriu
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 4, 2013

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

Radu Dumitriu
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 4, 2013
It's all in there

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

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

git config --global credential.helper osxkeychain

Do you need more ?
Radu Dumitriu
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 4, 2013
Mike Coppola April 4, 2013

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

Mike Coppola April 4, 2013

How do I reinstall it?

Mike Coppola April 4, 2013

You said reinstall "git-credential-osxkeychain" ...how do I reinstall that?

Radu Dumitriu
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 4, 2013

Mike, I'm curious: why did you buy a Mac ?

Mike Coppola April 4, 2013

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?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events