Environment: Ubuntu Server 20.04
Symptom: When you do git push
or git pull
from bash, it seems that the login information is stored somewhere and you are not prompted for password authentication.I want to delete my credentials and ask for a password every time, but I don't know what to do.
Tried:
Run git config --global --unset credential.helper
→ No effectgit credential-cache exit
→No effect~/.git-credentials
→ File does not exist in the first place
I don't know how the default helper is set in the Ubuntu environment, but according to the Manual, you can reset the setting by setting credential.helper
to a string from . What do you think?
(Example of disabling locally only)
$git config --local credential.helper'"
© 2025 OneMinuteCode. All rights reserved.