git amend
Published: October 18, 2021
With --amend you can make changes to your most recent commit.
sh
git commit --amend --no-edit
--amendwill add the changes to your recent commit.--no-editwill use the same commit message
If your commit was pushed to the remote server you need to force push, since the commit hash is updated.