git config --global credential.helper store
Now you never have to enter your credentials.
Storage format
The .git-credentials file is stored in plaintext. Each credential is stored on its own line as a URL like:
https://<user>:<password>@<hostname>
Example
Store your password in your home.
1 2 3 4 5 6 7 8 | $ git config --global credential.helper store $ git push http://yourserver.com/repo.git Username: <type your username> Password: <type your password> [several days later] $ git push http://yourserver.com/repo.git [your credentials are used automatically] |
No comments:
Post a Comment