So, I am attempting to push a repository to Github using Git bash. The thing is, it still thinks that I am using a username that I was previously using. However, I changed this username and I checked to be sure with the following commands:
git config user.name
"CorrectName"
git config user.email
"CorrectEmail@correctdomain"
git config --global user.name
"CorrectName
git config --global user.email
"CorrectEmail@correctdomain"
However, Github is still using my previous user name to push the repo. This is evident by the command to push:
git push origin master
remote: Permission to CorrectName/CorrectRepo.git denied to PreviousUsername
fatal: unable to access 'https://github.com/CorrectName/CorrectRepo/': The requested URL
returned error: 403
What can I do in order to successfully push my repo?