DEV Community

Johan G
Johan G

Posted on

Git: Amending Commits

There are times after making a commit then reality hits:

  • Forgot one or more files to be included in the commit
  • Commit message looks silly, unclear, unprofessional,etc. Whatever the reason is, it needs to be edited.

Instead of making a brand new separate commit, the previous commit can be "redo" using
git commit --amend

Top comments (0)