8

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.

mtyson
  • 8,196
  • 16
  • 66
  • 106

1 Answers1

11

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.
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250