3

This is really frustrating. Typing git credential-osxkeychain tells me:

usage: git credential-osxkeychain <get|store|erase>

so I know it's installed. But git help credential-osxkeychain says there's no help, and I can find nothing on the web that explains what get, store, and erase actually do.

What I ultimately want to do is get my git passwords stored in the keychain, but that's a different story. I just can't believe there is no documentation for the command.

(Yes, I know this is a "why" question, but obviously I'm asking for where I can find documentation)

Agent Friday
  • 125
  • 2
  • 11

1 Answers1

3

This feature comes from commit 34961d3, introduced by Jeff King in Dec. 2011 for Git 1.7.9.

And... it did not come with any formal documentation.
You can see more Git Pro Book "Git Tools - Credential Storage", which is the only form of documentation mentioning osxkeychain.

Does this mean it doesn't apply to ssh access? That's what my repo uses

Exactly: any credential helper (osxkeychain or otherwise) would apply only for HTTPS URLs, not SSH.
And SSH needs a cache only if the private key is passphrase-protected (in which case an ssh agent is needed).

VonC
  • 1,042,979
  • 435
  • 3,649
  • 4,283
  • Interesting... I see that the commit comment says it is for storing git-over-http passwords... Does this mean it doesn't apply to ssh access? That's what my repo uses. – Agent Friday Jul 11 '18 at 22:05
  • @AgentFriday Yes, http(s) only. See my edited answer. – VonC Jul 11 '18 at 22:06
  • I think I just need the instructions to store ssh credentials, which I'm sure is well documented. Thanks. – Agent Friday Jul 11 '18 at 22:18
  • @AgentFriday Yes, hence the link I mention in the answer: https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/#adding-your-ssh-key-to-the-ssh-agent – VonC Jul 11 '18 at 22:19