Possibly a dumb question:
I want to revert last commit. I have it's hash. I do:
git revert <bad hash>
And I get:
Revert "message of the last commit I am reverting"
This reverts commit 421357bf17ae...etc.
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# On branch master
# Your branch is up to date with 'origin/master'.
#
# Changes to be committed:
# modified: ...certain file
# deleted: ...certain file
# etc..
#
~
~
~
~
~
C:/Users/rest-of-path/.git/COMMIT_EDITMSG [unix] (07:55 08/01/2021) 1,1 All
"C:/Users/rest-of-path/.git/COMMIT_EDITMSG" [unix] 20L, 747C
And I don't know what to do from here. If I write on the keyboard, the message at the start will be edited, but when I press enter, nothing happens.
I know that I am creating a new commit here, I just don't know what to press to confirm the creation of this new commit. Assume I am happy with the default message "Revert bla bla" - how to confirm the new commit?.
Thank you for any help.