title: git doesn't ask for username and password, no credential helper
body: <h3>Problem</h3>
  <p>I seem to have some weird configuration on my git, where I am unable to authenticate to my repos when in non-root.<br />
  When not in root, it refuses to ask for my ids, or use the credentials stored, while everything works fine in root.</p>
  <h3>Additional information</h3>
  <p>I am working on a private github repos.<br />
  My OS is nixos.</p>
  <h3>Checks done</h3>
  <ul>
  <li>I have made sure I don't have a system-wide <code>/etc/gitconfig</code> (recovered through <code>git config --system</code>)</li>
  <li>I have made sure my global configs for both root and non-root matches (recovered through <code>git config --global</code> run as root and non-root).<br />
  It only contains my email, username, and the credential helper</li>
  <li>With the <code>credential.helper=store</code> in my global configs, and the <code>.git-credential</code> in the home directories
  <ul>
  <li><em>as root</em> it authenticate as expected</li>
  <li><em>as user</em> it outputs
  <pre><code>remote: Invalid username or password.
  fatal: Authentication failed for &lt;repos&gt;
  </code></pre>
  </li>
  </ul>
  </li>
  <li>Without the <code>credential.helper=store</code> in my global configs
  <ul>
  <li><em>as root</em> it asks for my credentials and works correctly once they are given</li>
  <li><em>as user</em> it doesn't ask for them, and outputs the same thing as with a credential</li>
  </ul>
  </li>
  <li>This is not a connection issue since I can pull a public repos without any issues as user (but still cannot push to it)</li>
  <li>I have made sure there is no alias for <code>git</code> as user</li>
  <li>I have made sure that both user and root reference the same <code>git</code> executable (using the command <code>whereis</code>, and <code>where</code>)</li>
  <li>these problems persist even on new tentative to clone my private repos, or to push on a newly cloned public repos.</li>
  </ul>
  <h3>Questions</h3>
  <p>Are there other git configurations outside of the <code>.gitconfig</code> files in each home directory, the <code>/etc/gitconfig</code> and the repos specific <code>.gitconfig</code>? <a href="https://www.git-scm.com/book/en/v2/Customizing-Git-Git-Configuration" rel="nofollow noreferrer">The manual</a> doesn't mention anything else.<br />
  My OS doesn't use apt or another classical package manager, and to my knowledge an equivalent to <code>apt purge</code> doesn't exist.<br />
  My hope is to be able to reset my git configuration and fix the problem this way.</p>
  <p>Or do I have no other solution than completely reset my system?</p>