Answers for "how to stop git asking for username and password"

12

git asking for password every time

# it will ask just one more time
git config --global credential.helper store
Posted by: Guest on August-20-2020
0

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

Code answers related to "how to stop git asking for username and password"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language