git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: commit --amend neglecting return value

From
maximilian attems <max@stro.at>
Date
Mar 22, 2010, 18:39 UTC
Message-ID
<20100322183956.GC21299@stro.at>
In-Reply-To
<E139EF92-B047-4928-A390-D47224CAA3DB@gernhardtsoftware.com>
On Mon, 22 Mar 2010, Brian Gernhardt wrote:
Show 8 quoted lines
> 
> On Mar 22, 2010, at 1:16 AM, Brian Gernhardt wrote:
> 
> > If you want to abort committing while editing the message, delete the entire message (in Vim: "0dG:wq^M") and git will reply "Aborting commit due to empty commit message."
> 
> Oops.  Obviously I meant "ggdG:wq^M".
> 
> Also, a quick search of :help and testing reveals that ":cq" causes Vim to exit with non-zero status which will cause git to abort the commit.
thanks for the pointer this is indeed very helpful. :)
kept hiting that bug in stressy situations, good to know a way out.
Previous: Brian Gernhardt
Message 4 of 4 in “commit --amend neglecting return value”
  1. maximilian attemsMar 22, 2010
  2. Brian GernhardtMar 22, 2010
  3. Brian GernhardtMar 22, 2010
  4. maximilian attemsMar 22, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.