how to change author name in git code example
Example 1: Change Git commit user name and author
git commit --amend --author="Author Name <[email protected]>"
git rebase -i B
git rebase -i --root
git commit --amend --author="Author Name <[email protected]>"
git rebase --continue
git commit --amend --author="Author Name <[email protected]>"
git rebase --continue
git push -f
Example 2: How to change git author
git commit --amend --author="Author Name <[email protected]>" --no-edit
Example 3: git squase to rename author
git commit --amend --author="Author Name <[email protected]>" --no-edit