Git Amend

Some amend snippets that are worth remembering. See the documentation for all the commit joy.

Amend with --no-edit

This allows you to amend the last commit with any changes you have made without changing the commit message.

git commit --amend --no-edit

--no-edit Use the selected commit message without launching an editor. For example, git commit --amend --no-edit amends a commit without changing its commit message. git-commit Documentation