10

I tried adding 'credential-osxkeychain' I followed these steps, but it has not installed correctly. I no longer want it. How can I stop git from calling it (when I do a pull)? Thank you!

git pull

git: 'credential-osxkeychain' is not a git command. See 'git --help'.
Username for 'https://github.com': jzone3
Password for 'https://jzone3@github.com': 
git: 'credential-osxkeychain' is not a git command. See 'git --help'.
Jared Zoneraich
  • 561
  • 1
  • 5
  • 13

3 Answers3

20

I ended up deleting osxkeychain from the config file.

git config --global --edit
Jared Zoneraich
  • 561
  • 1
  • 5
  • 13
  • 7
    Thanks for your help...I used this command directly: **git config --global --remove-section credential** – Mariam K. Oct 08 '13 at 08:29
6

It seems MacPorts packages the keychain helper and that might be why it wasn't coming up as a recognized command for you.

You can install the helper directly by following these instructions:

via: Magnus Johansson @ http://insomniacgeek.com/how-to-add-your-git-password-in-the-mac-osx-keychain/

In order to not having enter your git based password every time you perform a git operation, here’s how you can store the git password in the Mac OSX keychain:

Check if you have the credential-osxkeychain helper already installed:

git credential-osxkeychain

If not, the download and install it:

curl http://github-media-downloads.s3.amazonaws.com/osx/git-credential-osxkeychain -o git-credential-osxkeychain sudo mv git-credential-osxkeychain /usr/local/bin sudo chmod u+x /usr/local/bin/git-credential-osxkeychain

And make git use the helper:

git config --global credential.helper osxkeychain

Alex Abreu
  • 61
  • 1
  • 1
1

git config --global --remove-section credential

Joji Antony
  • 378
  • 2
  • 10