Answer by Sławomir Lenart for How do I stop a Git commit when VI is on the...
All answers are trying to teach you a bit of vimbut if you really have a problem closing a vimyou can have much more problems with the editionand the situation will be repeated on every interaction in...
View ArticleAnswer by Maciej for How do I stop a Git commit when VI is on the screen...
To sum up: When creating a new commit (i.e git commit) quit using :q!.When amending (i.e. git commit --amend) remove the commit message (only the first few rows not beginning with a #) for example by...
View ArticleAnswer by Daniel Pinyol for How do I stop a Git commit when VI is on the...
:q! does not work when amending a commit. It does not update thecommit message, but it executes the amendment :-( :cq completely aborts the amendment.
View ArticleAnswer by Eugene Yarmash for How do I stop a Git commit when VI is on the...
You have two options:Provide an empty commit message. If it's a new commit and you haven't yet saved the message, you can simply use :q! (quit without saving). If you’ve already saved (or you're...
View ArticleHow do I stop a Git commit when VI is on the screen waiting for a commit...
I have asked Git to perform a commit from within git bash, It has brought up VI as it always does.I now wish to cancel the commit, how do I prevent proceeding with the commit from this point?
View Article
More Pages to Explore .....