I wanted to change a commit in Git for which I googled and found this command:
git commit --amend
When I pass this command, I get a screen which look something like this:
When I start typing commit here, it just plays sound similar to one that sort of means that I am typing in a wrong place (invalid command).
Can someone please help me in figuring out how we can edit a commit message in Git?


ito enter some text, thenesc, then:xand enter.