I am trying to push to a git repository, and I have two git users. I have switched to user 'growsomedope' and the corresponding email via the git config user.name
and git config user.email
. However, when I push to growsomedope's repository, it tries to use my other user and thus gives a 403.
PS C:\Users\me\growsomedope.github.io> git config user.name
growsomedope
PS C:\Users\me\growsomedope.github.io> git push
remote: Permission to growsomedope/growsomedope.github.io.git denied to <my-work-username>.
fatal: unable to access '.github.io.git/': The requested URL returned error: 403
git config --list --show-scope
includes
global [email protected]
global user.name=growsomedope
I'm lost on how to troubleshoot this. Any suggestions?