Can git change the author's name and email address?

as shown in figure

clipboard.png

I accidentally changed my name and mailbox to the default value, so I submitted the code. Can I use the git statement to change the submitter"s name and mailbox?

change the previously submitted name and email!

Git
Mar.02,2021

$ git config --list 

$ git config --global user.email"123456@qq.com"   

$ git config --global user.name"123456"  

modify the previously submitted email address and name
https://codeshelper.com/q/10.


View user name and mailbox

check out
git config-- global-l
set
git config-- global user.email "thesame-email-as-github-account@mail.com";
git config-- global user.name "your-username"


modify directly with the command does not seem to have this operation,

you can go back to the version, delete the submission this time, and change the user name and mailbox back to submit it.

Menu