Every time I interact with the git remote a popup appears showing me multiple usernames and asking me to select one of them. It's annoying because I only have one valid username, "Almenon".
I tried making sure my user name was the same in both my Windows and WSL global git configs. I did this via git config --global -e
in my WSL and Windows terminal. I found that my Windows git config had the wrong username, so I fixed that. Once both were uppercase "Almenon" I expected the popup to go away but it kept on appearing.
I've read Git asks for username every time I push, that is not the same issue. I don't have any issues with my password, just my username.
It turns out the problem was not my git config, but instead Git Credential Manager.
I had Git Credential Manager configured for my credential helper. It turns out somehow I had two accounts in the git credential manager. I listed my accounts via git-credential-manager.exe github list
and removed the extra account via git-credential-manager.exe github logout <bad-account>
. For example, the account I didn't want was "almenon" so I ran git-credential-manager.exe github logout almenon
.
After that the popup went away 🎉