How can I setup GIT on my machine where I don't need to re-enter the password after every check-in?

Peterson, Melissa [MN035] 20 Reputation points
2024-05-06T17:17:14.3166667+00:00

I was trying this on Mac OS X and got the below error:

~ % git config --global credential.helper store

warning: credential.helper has multiple values

error: cannot overwrite multiple values with a single value

       Use a regexp, --add or --replace-all to change credential.helper.

Community Center | Not monitored
{count} votes

Accepted answer
  1. Stefan Buszwatiuk 75 Reputation points
    2024-05-06T19:55:25.8266667+00:00

    To fix the credential.helper error:
    By default, git on Mac OS has osxkeychain as a credential helper, so when you invoked
    git config --global credential.helper store
    for the first time, it added the value and when you invoked it again, credential.helper then had multiple values set for it. So to clear the error, run

    git config --unset-all credential.helper

    and you can verify that it was restored to the default configuration by using

    git config --get-all credential.helper

    To setup git to not require a password:

    I would suggest eschewing the credential helper method and to instead use the SSH protocol with public key authentication as a better practice.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.