Alex Gittemeier
Alex Gittemeier

Reputation: 5373

how to correctly setup credential-osxkeychain for git

I have followed the instructions on how to set up git to integrate the OS X keychain to the git command. The instructions say that the password prompt should come up once more, and that the keychain access window will come up. the password prompt up, but the keychain window did not. Also, subsequent commands requiring authentication (to a https:// url) came up with a password prompt. None of these commands raised any kind of error or warning that something went foul.

My question is how can i get the git command to use the keychain for https:// requests, so that I dont have to retype my username and password?

Some useful command output follows:

$ ls $(dirname $(which git)) | grep git
git
git-credential-osxkeychain
git-cvsserver
git-receive-pack
git-shell
git-upload-archive
git-upload-pack
gitk
$ git credential-osxkeychain
Usage: git credential-osxkeychain <get|store|erase>
$ git config --global credential.helper
osxkeychain
$ uname -a
Darwin mac-alex 11.4.2 Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT 2012; root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64
$ git --version
git version 1.7.5.4

Upvotes: 3

Views: 3729

Answers (1)

John Szakmeister
John Szakmeister

Reputation: 47102

You need a newer version of Git. The credential helpers aren't supported until Git 1.7.10.

Upvotes: 6

Related Questions