Answers for "git keep asking for my password and username"

2

how to stop git asking for username and password

// For permanently stop git from asking credentials
$ git config credential.helper store
$ git push https://github.com/repo.git

Username for 'https://github.com': <USERNAME>
Password for 'https://[email protected]': <PASSWORD>

// User 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 hours).
Posted by: Guest on August-02-2021
0

git not asking for password

git config --system --unset credential.helper
git config --global --unset credential.helper
git config --local --unset credential.helper
Posted by: Guest on February-02-2021

Code answers related to "git keep asking for my password and username"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language