Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>Problem 1</strong>: "want my password to be forgotten" by git</p> <p><strong>Problem 2 (implied)</strong>: contradictory configuration settings</p> <p><strong>Answer</strong>:</p> <pre><code>git config --unset-all credential.helper git config --global --unset-all credential.helper git config --system --unset-all credential.helper </code></pre> <p><strong>Explanation:</strong> Git configuration is specified in three places:</p> <ol> <li>(repository_home)/.git/config...........................for the subject repository.</li> <li>~/.gitconfig..........................for this particular user.</li> <li>/etc/gitconfig.......................for all users on this system.</li> </ol> <p>The commands noted above will remove all settings related to credentials at the repository, user and system level... which (I think) answers your question.</p> <p>However, it sounds like your problem may be limited to having some sort of configuration contradiction related to <strong>one</strong> option of credential.helper, <strong>cache</strong>. If you'd prefer to reset only that option, do this:</p> <pre><code>git config --unset credential.helper 'cache' git config --global --unset credential.helper 'cache' git config --system --unset credential.helper 'cache' </code></pre> <p>... then set the timeout at the appropriate level, any of:</p> <pre><code>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' </code></pre> <p>For more, see the excellent documentation here:</p> <ol> <li><a href="http://git-scm.com/docs/git-config">git config command</a></li> <li><a href="http://git-scm.com/docs/git-credential-cache">git credential caching</a></li> </ol>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload