How to exit from zsh commit message when accidentally write a semicolon and press enter

Viewed 25

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?

0 Answers
Related