Why can my other github account submit things directly to my warehouse?

I have an old account that has been useless for years. Installed a new computer, then wrote a little bit and submitted it to my warehouse, only to find that it was all submitted by my old account? Why is this?
even if my account is confused, it is said that all other account submissions have to fork, and then pull request. My new writing appears straight up in my master branch.

I am completely confused. I want to know the account information entered when I submitted to github (I did not generate a key). How can I check it?

Jul.09,2021

not set up


I think I know why:

  1. < del > I did enter the wrong account password, which is possible. My account passwords are all very similar. < / del >
  2. at the same time, I bound token, in vscode's setting sync plug-in and forgot to revoke the permission to operate on repo.

< del > check whether to bind token. You can see < / del >
windows credential in Control Panel-> user-> windows credential saves the github account password

< del > but how to read the github account when uploading in vscode? < / del >

the situation seems to have figured out

the fact is that I specified the user.email of git config (the mailbox of my old account) to work. Even if I didn't enter the password for my github account, I could upload changes to my user.email account by impersonating it. Can I pretend to be some boss and cover my face? Escape.)

attach github's official explanation impersonate user submission via git email


git local warehouse accounts should only be used as logos and can be git commit.
I have two accounts A, B. The local warehouse was created by An and then set to B globally, it can still be submitted to this project of A.
the accounts mentioned above only set up user.name and user.email through git config. There's no password or anything.
these are all git stuff.

then push to GitHub.
this step requires the GitHub account and password (or SSH key).
this step can be submitted as long as the user successfully logs in.

Menu