I often need to tweak my most recent commit to change its file content, but I don't always want to adjust the commit message.
To quickly amend a commit with changes from the index without being prompted to
edit and confirm the message, use the --no-edit
option:
git commit --amend --no-edit