Reputation: 410
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
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
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
Reputation: 7301
Use Git Credential Store - this program will use the Windows Credential Store to store your git password.
Upvotes: 3
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