Change commit message (before you've pushed)

March 4, 2023 ยท View on GitHub

git commit --amend

Source

  • Oh, I need to change the message on my last commit!

See also

  • Adding more files/changes to a commit you've just done
  • File Too Large I Want to Remove It
  • Undo local changes to a file in git

Contents

  1. 1Source
  2. 2See also