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

Re: git reflog delete / manpage confusion

From
MVMahesh Vaidya <forvaidya@gmail.com>
Date
Jul 1, 2010, 10:58 UTC
Message-ID
<AANLkTilaKwB1BYTNIJ49M0CZAJGrsPetQDOxZj_RHRv3@mail.gmail.com>
In-Reply-To
<20100701101613.GA1961@sigill.intra.peff.net>
Hi I am confused again as it indeed removed HEAD{4}
 -2993260 HEAD@{4}: commit (initial)
Show 20 quoted lines
>  mkdir repo && cd repo && git init
>  for i in 1 2 3 4 5; do
>    echo $i >file && git add file && git commit -m file
>  done
>  git reflog -g --oneline >old
>  git reflog delete HEAD@{3}
>  git reflog -g --oneline >new
>  diff -u old new
>
> I get:
>
>  --- old 2010-07-01 05:54:48.000000000 -0400
>  +++ new 2010-07-01 05:54:48.000000000 -0400
>  @@ -1,5 +1,4 @@
>   01bb1c7 HEAD@{0}: commit: file
>   c8020a8 HEAD@{1}: commit: file
>   d82df6b HEAD@{2}: commit: file
>  -364bcc0 HEAD@{3}: commit: file
>  -2993260 HEAD@{4}: commit (initial): file
>  +364bcc0 HEAD@{3}: commit (initial): file
Previous: Jeff KingNext: Michael J Gruber
Message 3 of 4 in “git reflog delete / manpage confusion”
  1. Mahesh VaidyaJul 1, 2010
  2. Jeff KingJul 1, 2010
  3. Mahesh VaidyaJul 1, 2010
  4. Michael J GruberJul 1, 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.