I have two github logins: personal under my name, and company login.
I use windows credential manager which I occasionally struggle with because of the two accounts but I have never bothered to fix.
Today I needed to push some changes to one of my company repos. My last commit to github was under my personal login so the commit failed.
I decided to fix it - I ran
git config --global credential.github.com.useHttpPath true and sure enough I was prompted for a login where I supplied my company credentials for github.
However when I look at the commits on github they appear under my personal login. How can this be? This repo should not even allow commits from any other user than my company login. According to the Manage Access page I am the only one who should be able to commit:
0 collaborators have access to this repository. Only you can contribute to this repository.