I had an account on github (Mariogs37) that I've since stopped using. In the meantime, I've created a new one (bclayman) that I'd like to start using. I created a repo on github and ran:
git remote add origin https://github.com/bclayman/SquashScraper.git
I get no error messages, and then I run:
git push -u origin master
However, I get this error message:
remote: Permission to bclayman/SquashScraper.git denied to Mariogs37.
fatal: unable to access 'https://github.com/bclayman/SquashScraper.git/': The requested URL returned error: 403
I googled around for similar issues and came across this link:
http://stackoverflow.com/questions/24019258/git-thinks-im-the-wrong-user
I followed vonC's answer's instructions (here: https://help.github.com/articles/generating-ssh-keys/#step-3-add-your-ssh-key-to-github). At the end of adding my SSH key to github, I got this in my terminal:
Hi bclayman! You've successfully authenticated, but GitHub does not provide shell access.
I retried pushing my local repo to github but have run into the same error. Any idea why it still thinks I'm Mariogs37 (and thus don't have permissions to push to a repo on github owned by bclayman)?
Thanks,
bclayman