title: Access different github accounts from different git local config
body: <p>Here there are two different users in github.com</p>
  <ul>
  <li>&quot;user-one&quot; (one@mail.com)</li>
  <li>&quot;user-two&quot; (two@mail.com)</li>
  </ul>
  <p>Each user has its own repositories with different projects within them accounts</p>
  <ul>
  <li><a href="https://github.com/user-one/repo-one.git" rel="nofollow noreferrer">https://github.com/user-one/repo-one.git</a></li>
  <li><a href="https://github.com/user-two/repo-two.git" rel="nofollow noreferrer">https://github.com/user-two/repo-two.git</a>)</li>
  </ul>
  <p>Now there is me from my computer: I want to set local configurations to</p>
  <ul>
  <li>&quot;folder-one&quot; targeting repo-one to upload project changes, so:
  <ul>
  <li>git config --local user.name &quot;user-one&quot;</li>
  <li>git config --local user.email one@mail.com</li>
  </ul>
  </li>
  <li>&quot;folder-two&quot; targeting repo-two to upload project changes, so:
  <ul>
  <li>git config --local user.name &quot;user-two&quot;</li>
  <li>git config --local user.email two@mail.com</li>
  </ul>
  </li>
  </ul>
  <p>When I push to &quot;repo-one&quot; GitHub installs a credential in my computer (like git:https://github.com) that let me only to upload changes to that repo.</p>
  <p><strong>The problem</strong></p>
  <p>I can solve this erasing that credential each time I push to different repos, but there is a better way to do this? some way to save each new user data in place of rejecting me the access?</p>
  <p><strong>Solution proponsal</strong></p>
  <p>How to let GitHub know that I will handle different accounts that will push to them each own differents repos?</p>