How To Save Git User And Password Locally

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 ```bash git config --global credential.helper store ``` then ```bash 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. ```bash 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.

This post is written by Pravin

Tags : Git

Share it :      

Leave a comment




  1. GitHub
Ad below