I used have a "work" GitHub account.
Everything works fine, and I have no trouble pushing code etc to my work account.
Then I created a personal Github account to use for my personal portfolio on GitHub pages.
When I try to push to my personal account, I get the error:
Permission to
mypersonalaccountusername/mypersonalaccountusername.github.io.git
denied to mycompanyusername
I expected git to ask me for my username, but somehow it assumes that I am trying to push with my company username. No idea what's going on.
Github Desktop is signed into mycompanyusername
, but for my personal Git repository I am trying to push from the terminal by doing:
git push -u origin master
So how can I push to my personal repository from my personal account instead of my company account?