How to EDIT UNDO or CHANGE the last Git commit AMEND

Edit or undo the last Git commit message using git commit --amend and safe force push options for shared repositories and clean history.