I've been trying to push commits to GitHub using my 'real' account (MikeTheGreat
) but no matter what I do GitHub keeps listing them as my other account (StudentDemoAccount
). I've been able to clear my credentials (as evidenced by the fact that when I try to do a git push
it asks me for my username and password again), but when I type in my MikeTheGreat account info the commit is listed on GitHub as being from the StudentDemoAccount.
I've gone through a bunch of pages, including:
Git using alternate userid although git config and git remote do not reference it
many other pages (both here, on GitHub.com, and elsewhere).
I'm able to force Git to re-authenticate me (by re-generating the GitHub Personal Access Token), but whenever I give it my MikeTheGreat credentials it still lists the commit as coming from the StudentDemoAccount.
I'm on Windows 10, and am using the command-line git tools on a CMD.exe.