Sometimes I make a hideous typo in my git commit -m "description here"
message, or decide that I need to make a clearer commit message, before I’ve done a push.
It looks something like this when I’m working with hugo:
git add .
git commit -m "Website update 2021-090-2"
PANIC SETS IN
Fortunately, it’s relatively simple to change the commit message before the push has happened:
git commit --amend -m "Website update 2021-09-02"
git push origin main