Saturday, August 3, 2024

Git the stupid password store - Tyler Cipriani


The maze of options

My mind initially refused to learn git credentials due to its twisty little maze of terms that all sound alike:

    git credential fill: how you invoke a user's configured git credential helper
    git credential approve: how you save git credentials (if this is supported by the user's git credential helper)
    git credential.helper: the git config that points to a script that poops out usernames and passwords. These helper scripts are often named git-credential-<something>.
    git-credential-cache: a specific, built-in git credential helper that caches credentials in memory for a while.
    git-credential-store: STOP. DON'T TOUCH. This is a specific, built-in git credential helper that stores credentials in cleartext in your home directory. Whomp whomp.
    git-credential-manager: a specific and confusingly named git credential helper from Microsoft®. If you're on Linux or Mac, feel free to ignore it.

But once I mapped the terms, I only needed to pick a git credential helper.



https://tylercipriani.com/blog/2024/07/31/git-as-a-
password-prompt/