Using Git without Password

Using Git without Password
There are several ways to do that.

1. SSH
2. HTTPS + store password

I already have the HTTPS way, so I add the store password part.

First of all, check my git version
>git --version
git version 1.8.0.3

The version is greater than 1.7, it is ok.

Check if I already have credential-osxkeychain
>git credential-osxkeychain
Usage: git credential-osxkeychain <get|store|erase>

To tell git to use osxkeychain
>git config --global credential.helper osxkeychain


References:
https://help.github.com/articles/why-is-git-always-asking-for-my-password
https://help.github.com/articles/set-up-git#password-caching

猜你喜欢

转载自sillycat.iteye.com/blog/1772389