I have two Github accounts. One is for work and the other is for hobby programming. I created a repo for the hobby account and then inside ./git/config I set the credentials for the hobby profile. However, when I try to push changes to the code it complains:
remote: Permission to hobbyusername/blockchain.git denied to workusername.
When I run git --config list I can see the usernames and emails for both the work and hobby profiles. Any idea how to fix this?
Inside the repo when I run: git config user.email and git config user.name I correctly get the name and email for the hobby account and when print the same with --global I get the work account data.