Abort Git commit in Vim
Have you ever gotten to the point of a Git commit where you're entering the commit message in Vim and realise you need to abort?
:cq
This exits vim with an error code, so Git will not proceed with the commit and you'll be deposited safely back at the shell.
Written by Rhodri Pugh
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Vim
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#