caching - git credential.helper=cache never forgets the password? -


i want password forgotten, have type again.

i have setup this:

git config credential.helper 'cache --timeout=600' 

but later on, several days, still remembers password , not ask me again...

git version 1.7.10.4 (at ubuntu)

did run bug? (as see similar questions none found answers this...)

edit: or missing something?

edit: know commit local, , push remote. commits (with rabbitvcs git nautilus addon) seem performing push remote repo being updated... when issue push, asks password... commit command not ask , perform remote update; checked 4 hours ago commit updated remote server :(

problem 1: "want password forgotten" git

problem 2 (implied): contradictory configuration settings

answer:

git config --unset-all credential.helper git config --global --unset-all credential.helper git config --system --unset-all credential.helper 

explanation: git configuration specified in 3 places:

  1. (repository_home)/.git/config...........................for subject repository.
  2. ~/.gitconfig..........................for particular user.
  3. /etc/gitconfig.......................for users on system.

the commands noted above remove settings related credentials @ repository, user , system level... (i think) answers question.

however, sounds problem may limited having sort of configuration contradiction related one option of credential.helper, cache. if you'd prefer reset option, this:

git config --unset credential.helper 'cache' git config --global --unset credential.helper 'cache' git config --system --unset credential.helper 'cache' 

... set timeout @ appropriate level, of:

git config --set credential.helper 'cache --timeout=600' git config --global --set credential.helper 'cache --timeout=600' git config --system --set credential.helper 'cache --timeout=600' 

for more, see excellent documentation here:

  1. git config command
  2. git credential caching

Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

.htaccess - Matching full URL in RewriteCond -