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

Re: unexpected file deletion after using git rebase --abort

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Jul 3, 2013, 22:56 UTC
Message-ID
<20130703225642.GU408@google.com>
In-Reply-To
<20130703224402.GF9016@localhost.localdomain>
Paul A. Kennedy wrote:
> If we don't expect this, should we update the documentation for the
> --abort heading in the git rebase man page to indicate that newly
> staged content will be lost after a git rebase --abort?
How about something along these lines?
diff --git i/Documentation/git-rebase.txt w/Documentation/git-rebase.txt
index 6b2e1c8..dcae40d 100644
--- i/Documentation/git-rebase.txt
+++ w/Documentation/git-rebase.txt
@@ -240,6 +240,9 @@ leave out at most one of A and B, in which case it defaults to HEAD.
 	started, then HEAD will be reset to <branch>. Otherwise HEAD
 	will be reset to where it was when the rebase operation was
 	started.
++
+This discards any changes to files tracked in the working tree or <branch>.
+You may want to stash your changes first (see linkgit:git-stash[1]).
 
 --keep-empty::
 	Keep the commits that do not change anything from its
Previous: Paul A. KennedyNext: Junio C Hamano
Message 2 of 6 in “unexpected file deletion after using git rebase --abort”
  1. Paul A. KennedyJul 3, 2013
  2. Jonathan NiederJul 3, 2013
  3. Junio C HamanoJul 3, 2013
  4. Paul A. KennedyJul 4, 2013
  5. Eric SunshineJul 4, 2013
  6. Junio C HamanoJul 5, 2013

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.