Git Problems with Solutions
Published in
1 min readApr 23, 2019
Always Password prompt:
You can permanently authenticating with Git repositories by running this commands:
$ git config credential.helper store
#This will store your password locally$ git push https://github.com/repo.gitUsername for 'https://github.com': <USERNAME>
Password for 'https://USERNAME@github.com': <PASSWORD>
WARNING: If you use credential.helper store
from the answer, your password is going to be stored completely unencrypted ("as is") at ~/.git-credentials
. Please consult the comments section below or the answers from the "Linked" section, especially if your employer has zero tolerance for security issues.
You can also specify caching expire
git config --global credential.helper "cache --timeout 7200"
After enabling credential caching, it will be cached for 7200 seconds (2 hour).