Re: git reflog delete / manpage confusion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi I am confused again as it indeed removed HEAD{4}

 -2993260 HEAD@{4}: commit (initial)

>  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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]