git commit --author 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: git commits by author
git shortlog -s --author="authorName"
git shortlog -sn --all
Example 3: git log by author
git log --author="Jon"