Published: October 18, 2021
--amend you can make changes to your most recent commit.
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.