2. Small edit commit

If your amendments are suitably trivial (fixing a silly typo or adding a file you forgot to stage) such that the earlier commit message is just fine, you can simply make the changes, stage them, and avoid the unnecessary editor session entirely with:

git commit --amend --no-edit

https://git-scm.com/book/en/v2/Git-Tools-Rewriting-History

Last updated

Was this helpful?