Skip to content

Files

Latest commit

d557356 · Apr 7, 2019

History

History
23 lines (13 loc) · 485 Bytes

git-commit-amend.md

File metadata and controls

23 lines (13 loc) · 485 Bytes

Modify Last Commit Details

  • 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
Example:

git commit --amend

git commit --ammnd --author Arshad Kazmi <arshadkazmi42@gmail.com>

Related