- To modify commit message
git commit --amend
- To modify commit author details
git commit --amend --author "{{NAME}} <{{EMAIL}}>"
- NAME: New name to replace the author name in commit
- EMAIL: New email to replace the author email in commit
git commit --amend
git commit --ammnd --author Arshad Kazmi <[email protected]>