I have 2 github accounts, one for personal use and one for work.
I am working on a personal website and so I have logged into git from the terminal using my personal username and password. When I do a 'git config --list' I am shown the correct username and password for my personal account as I would expect.
However when I then try and push my code up to my personal account it gives this error...
remote: Permission to <personal_username>/<personal_repo>.git denied to <work_username>.
I have no idea where it is even picking up my work username or work credentials from as they are not listed in my git config.
Please help!
Thanks