2
I wonder if there’s a way my Git Bash can always ask for my password on Windows. I don’t want it to record for anything.
2
I wonder if there’s a way my Git Bash can always ask for my password on Windows. I don’t want it to record for anything.
4
The setting you need to change is the credential.helper
, as you are in Windows it should be as manager
, you can check by running the console command
git config --list
Git has a running process that stores your credentials in memory (cache) and dristribui them on demand. You can disable the use of Git credential memory by using
git config --global --unset credential.helper
This may not work if it is set in a configuration file some configuration that changes every time you start the system that has this setting, in this case an output is to set something in the config
for credential.helper
, you can use the definition cache
with the command
git config credential.helper cache
By default it stores your password for 5 me, then asks again, but you can set it up for more or less time using the timeout attribute with the time in seconds, ex for 2 minutes:
git config credential.helper 'cache --timeout=120'
Sources:
https://git-scm.com/docs/gitcredentials
https://git-scm.com/book/pt-br/v2/Git-Tools-Credential-Storage
https://stackoverflow.com/questions/15381198/remove-credentials-from-git
-2
Good afternoon, recommend that you go to do tes git command no bash with HTTPS (https://...), Then you’ll always ask for your credentials.
Browser other questions tagged git windows
You are not signed in. Login or sign up in order to post.
Didn’t work with https
– Fernando Schelb