Change a Commit Message That Hasn't Been Pushed Yet

Change a Commit Message That Hasn't Been Pushed Yet

Use the --amend flag

git commit -m 'removing sponsor from READMe'

To rectify the above commit message, type

git commit --amend -m 'removing sponsor from README'