最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

windows subsystem for linux - Git asks for a username every single time - Stack Overflow

programmeradmin1浏览0评论

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.

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.

Share Improve this question asked Jan 31 at 4:51 AlmenonAlmenon 1,47616 silver badges27 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

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

发布评论

评论列表(0)

  1. 暂无评论