Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git credential helper not working

I'm trying to save my git password to avoid typing every time.

I am using git bash on windows 10.

git continues to demand a password everytime I hit remote.

(Is git bash why its not working?)

I have tried:

git config --global credential.helper 'cache --timeout 28800'

And:

git config --global credential.helper store

and:

git config --global credential.helper wincred

I've tried it in both git bash and cmd, so I guess it's not git bash causing the problem.

like image 603
mtyson Avatar asked Mar 07 '23 06:03

mtyson


1 Answers

First, for Windows, the credential helper to use is manager:

git config --global credential.helper manager

Second, this only works for HTTPS URLs, not SSH ones ([email protected])

For SSHs, it is either:

  • asking for a passphrase because your private SSH key is passphrase-protected.
    If that is the case, check ssh-agent: see "Adding your SSH key to the ssh-agent"
  • asking for matt's password because it does not find your public key on the remote server art ~matt/.ssh/authorized_keys.
like image 83
VonC Avatar answered Mar 16 '23 16:03

VonC