Usually, when one writes a commit message it does it like this:
git commit -m 'this is my message'
But by mistake instead of closing the quotes you press ; and enter so it happens this:
git commit -m 'this is my message;
quote>
How can it be exited from here? Is there a way to remove the last action?