I need to change who git thinks I am so I can push to a different repo ( both are mine. ).
Here is a similar issue but I don't want to set any config variables.
I just want to login once to my current username. I plan on deleting my other account.
Here is the error when I attempt a git push origin master
remote: Permission to current_user/fav-front.git denied to user_to_delete. fatal: unable to access 'https://github.com/current_user/repo.git/': The requested URL returned error: 403
Please note that the git config variables for user and email ( user.name and user.email ) are not related to the authentication that git push uses.
They are used for commits.
To reiterate, I want to login to git as current user.