I recently made a new GitHub account. With this new GitHub account, I've created a new repository. After cloning the repository to my local PC, I staged and committed some files. When I attempt to push to this repository, it state's that I don't have permission to push to the repository. It appears that Git Bash is using my old GitHub account information, seeing as how the return message is:
$ git push
remote: Permission to newusername/project.git denied to oldusername.
fatal: unable to access 'https://github.com/newusername/project.git/': The requested URL returned error: 403
So this seems straight forward that all I would need to do is change my account information in which Git Bash is referencing. I made changes to the 'config' data by providing my new username and email. I even verified that I didn't have environmental variables (such as GIT_COMMITTER_NAME or GIT_AUTHOR_NAME) overriding user name.
However, when I go back to push to the remote repository, it still returns an error message stating that I don't have permission to upload changes.
I even went as far as uninstalling Git in hopes that it would forget my old login information, but it seems to have remembered the data. I'm just looking for a prompt where I can enter my GitHub username and password.
Any help?