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

mini-wierdness with "git am"

From
AAghiles <aghilesk@gmail.com>
Date
Nov 30, 2011, 23:12 UTC
Message-ID
<CAKCZoVb5-JfzTXK9pUoem_0oQHrSLkrxQZUOZGTX3GGgebPGwA@mail.gmail.com>
Hello,
I am using : git version 1.7.0.3, in Mac OS X.

A slightly strange behavior occurs with "git am --abort". Here is the sequence:

> git am 000*

error: ... : patch doesn not apply (oops, forgot to reset)

> git reset --hard HEAD~1
> git am 000*

previous rebase directory ... still exists but mbox given. (oops, forgot to abort)

> git am --abort

At this point, my repository is back to ORIG_HEAD! Meaning that it reverted my preivous "git reset --hard HEAD~1".

Hope this is clear.
As usual, thanks for the great product.
-- aghiles
Next: Andrew Wong
Message 1 of 2 in “mini-wierdness with "git am"”
  1. AghilesNov 30, 2011
  2. Andrew WongDec 1, 2011

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.