RegisteredUser
RegisteredUser

Reputation: 410

How do I avoid typing password multiple times when using git?

I just started using git, I am using git clone to clone 100s of directories. It prompts for password on each clone. how can I avoid this.

Upvotes: 1

Views: 625

Answers (4)

Alexey Kozhevnikov
Alexey Kozhevnikov

Reputation: 4259

If you are using HTTPS auth:

See the guideon GitHub. One-liner from it:

Mac: git config --global credential.helper osxkeychain

Linux: git config --global credential.helper cache

Upvotes: 1

Jud
Jud

Reputation: 1188

If you're using SSH for authentication you can set up SSH private/public key pairs to do the authentication without a password:

General case: http://www.ece.uci.edu/~chou/ssh-key.html

GitHub specific: https://help.github.com/articles/generating-ssh-keys

Upvotes: 2

Michael Mairegger
Michael Mairegger

Reputation: 7301

Use Git Credential Store - this program will use the Windows Credential Store to store your git password.

Upvotes: 3

adiblol
adiblol

Reputation: 51

You need ssh-agent to avoid typing password of your private key each time it's accessed. See http://www.gentoo.org/doc/en/articles/openssh-key-management-p2.xml for details.

Upvotes: 3

Related Questions