git remember user password

To Make Git Remember Password

Run

git config credential.helper store

Then

git pull

after providing the user-name and password, those information will be remembered by git for later uses. The credentials are stored in a file on a disk.

If the password is changed later, simply run

git pull

to fail the login, then the old credential will be removed from the ~/.git-credentials file, then run

git pull

to provide a new credential for login.