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

Re: [PATCH] Enable reflogs by default in any repository with a working directory.

From
JFJ. Bruce Fields <bfields@fieldses.org>
Date
Dec 14, 2006, 23:10 UTC
Message-ID
<20061214231038.GC5147@fieldses.org>
In-Reply-To
<20061214224117.GA26374@spearce.org>
On Thu, Dec 14, 2006 at 05:41:17PM -0500, Shawn O. Pearce wrote:
Show 5 quoted lines
> New and experienced Git users alike are finding out too late that
> they forgot to enable reflogs in the current repository, and cannot
> use the information stored within it to recover from an incorrectly
> entered command such as `git reset --hard HEAD^^^` when they really
> meant HEAD^^ (aka HEAD~2).

Stupid question--I assume a mention in the reflog doesn't count as a real reference to an object, so they won't save you in the case when you pruned recently?

Previous: Shawn O. PearceNext: Shawn Pearce
Message 3 of 9 in “Re: What's in git.git (stable)”
  1. Junio C HamanoDec 14, 2006
  2. Enable reflogs by default in any repository with a working directory.Shawn O. Pearce, Dec 14, 2006
  3. J. Bruce FieldsDec 14, 2006
  4. Shawn PearceDec 14, 2006
  5. J. Bruce FieldsDec 14, 2006
  6. Johannes SchindelinDec 15, 2006
  7. Shawn PearceDec 15, 2006
  8. Junio C HamanoDec 15, 2006
  9. Shawn PearceDec 14, 2006

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.