Answered by : eiymba
# Changes the username and email of all commits from the start.
git rebase -i --root -x "git commit --amend --author='YOUR_USERNAME <[email protected]> --no-edit'"
Source : | Last Update : Wed, 12 Aug 20
Answered by : healthy-horse-712zz5lcyrg1
git commit --amend --author="Author Name <[email protected]>" --no-edit
Source : https://stackoverflow.com/questions/3042437/how-to-change-the-commit-author-for-one-specific-commit | Last Update : Thu, 18 Feb 21
Answered by : lucky-lark-od2ypbbg7h7d
git commit --amend --author="John Doe <[email protected]>"
Source : https://www.git-tower.com/learn/git/faq/change-author-name-email/ | Last Update : Thu, 18 Feb 21
Answered by : concerned-caiman-6yjh7ni635g6
git rebase -i HEAD~2 git commit --amend --author="Cesar Bueno <[email protected]>" git rebase --continue
Source : | Last Update : Mon, 06 Sep 21
Answered by : uninterested-unicorn-9zoekysvtfxo
Reset your username to the config globally: git config --global user.name example.
Reset your email to the config globally: git config --global user.email [email protected].
Now reset the author of your commit without edit required: git commit --amend --reset-author --no-edit.
Source : | Last Update : Tue, 04 Oct 22
Answered by : shiin-zu
$ git commit --amend --author="John Doe <[email protected]>" --no-edit
$ git rebase --continue
Source : https://www.git-tower.com/learn/git/faq/change-author-name-email | Last Update : Thu, 01 Sep 22
Answered by : zany-zebra-dgbw92d3j1yq
git commit --amend --author="Muhammad Faisal Ameen <[email protected]>"
after above command edit commit message
press :q to save changes
before push check git history(vs) or git log (cmd)
Source : https://chat.openai.com/c/efa8ce56-532f-4844-8592-678ed2cc36a6 | Last Update : Mon, 04 Sep 23
Answered by : softhunt
git commit --author="soft hunt <[email protected]>"
Source : https://softhunt.net/how-to-git-change-commit-author/ | Last Update : Sun, 17 Apr 22
Answered by : noel-lee
{"tags":[{"tag":"p","content":"When changing commit author, or removing private email"},{"tag":"p","content":"git config the proper author info and run:"},{"tag":"textarea","content":"git rebase -i YOUR_SHA -x \"git commit --amend --reset-author -CHEAD\"","code_language":"whatever"},{"tag":"p","content":"To specify autho info directly<br>"},{"tag":"p","content":"<u>git rebase -i YOUR_SHA -x \"git commit --amend --author 'New Name <[email protected]>' -CHEAD\" </[email protected]></u>"}]}
Source : https://stackoverflow.com/questions/4981126/how-to-amend-several-commits-in-git-to-change-author/25815116#25815116 | Last Update : Tue, 21 Mar 23