Quantcast
Channel: How do I stop a Git commit when VI is on the screen waiting for a commit message? - Stack Overflow
Browsing latest articles
Browse All 5 View Live

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 Article



Answer 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 Article

Answer 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 Article

Answer 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 Article

How 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

Browsing latest articles
Browse All 5 View Live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>