i just want to update my commit message

git has a built-in flag for this: git commit —amend

Your text editor (for example, vim) will open, and you can edit the message, save, and quit.

Type git show to see your new commit message along with the changes