In this short article, we will see how to save time by storing git user and password on local machine.
Attention: This method saves the credentials in plaintext.
Run
git config --global credential.helper store
then
git pull
When you do git pull, it will ask for userid and password. Same will get stored in .git-credentials
file
If your password is changed, please run following command.
git pull
This will fail, because the password is incorrect, git then removes the offending user+password from the ~/.git-credentials file, so now re-run git pull
. It will ask for user and password. Pelase provide a new password so it works as earlier.
post by Pravin