title: Can't Switch two users in GIT. Cannot change old GIT user using macOS
body: <p>I'm getting totally mad trying to use my two GIT users. Till today, I had only one, but now I create another one, personal and work profiles.
  I had two different ssh keys configured, and I've modified my <code>.gitconfig</code> in my user home folder with ifs condition, but nothing change...
  Some things I've tried (but nothing works):</p>
  <ul>
  <li>Changing global user to new one. (In <code>~/.gitconfig</code>)</li>
  <li>Setting repository user (In <code>/path/repository/.git/config</code>)</li>
  <li>Having if conditions in my home <code>.gitconfig</code></li>
  <li>Changing Visual Studio Code git user</li>
  </ul>
  <p>I've also tried <code>git config --list --show-origin</code> but first user has been removed for every file shown in this list result.
  List returned:</p>
  <pre><code>file:/Applications/Xcode.app/Contents/Developer/usr/share/git-core/gitconfig    credential.helper=osxkeychain
  file:/Users/elenitaex5/.gitconfig       push.default=current
  file:/Users/elenitaex5/.gitconfig       pull.default=current
  file:/Users/elenitaex5/.gitconfig       includeif.gitdir:~/projects/.path=~/projects/.gitconfig
  file:/Users/elenitaex5/projects/.gitconfig      user.name=Elena
  file:/Users/elenitaex5/projects/.gitconfig      user.email=elena.maXXXo@gmail.com
  file:/Users/elenitaex5/.gitconfig       user.name=Elena
  file:/Users/elenitaex5/.gitconfig       user.email=elena.maXXXo@gmail.com
  file:.git/config        core.repositoryformatversion=0
  file:.git/config        core.filemode=true
  file:.git/config        core.bare=false
  file:.git/config        core.logallrefupdates=true
  file:.git/config        core.ignorecase=true
  file:.git/config        core.precomposeunicode=true
  file:.git/config        user.name=Elena
  file:.git/config        user.email=elena.mXXXo@gmail.com
  file:.git/config        remote.origin.url=git@github.com:elenitaex5/homeManager.git
  file:.git/config        remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
  </code></pre>
  <p>My error trying to git push:</p>
  <pre><code>ERROR: Permission to elenitaex5/homeManager.git denied to elenaphone.
  fatal: Could not read from remote repository.
  
  Please make sure you have the correct access rights
  and the repository exists.
  </code></pre>
  <p>I can't find either... user named like the alias in any file.
  Does anybody knows another GIT user file? Or where it can be saved?</p>
  <p><strong>What I wanna really do?</strong></p>
  <p>Having two different git users and make commits in my personal project with my personal user and use work git user to make commits in work project.</p>
  <p>Till now, I only needed to use one, but I need two now. I've tried everything to make the second one works, even change the global git user, but nothing works. Somewhere... there's a file having first one as priority and I don't know where...</p>