Re: [RFC] git reset --recover

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

 



On Mon, Mar 3, 2008 at 11:13 PM, Santi Béjar <sbejar@xxxxxxxxx> wrote:> On Mon, Mar 3, 2008 at 3:59 PM, Ping Yin <pkufranky@xxxxxxxxx> wrote:>  > Today i use git reset carelessly and lose all my changes!>  >
>  >>  >  but i fogot to type "git init" which results that file1 and file2 are>  >  added to index of foo repository. I tried to revert the operation>  >  using "git reset". And the tragedy happened at that time because i>  >  made so fatal  a mistake that i typed "git reset --hard". And i lost>  >  all my files in bar dir!>>  "git reset" was sufficient.>I know about this, but i was just too careless.>>  >>  >  So, can we introduce a --recover option for "git reset" to save the>  >  foolish or careless people like me?>>  Another possibility would be to not delete a file that is absent in>  both the old and new HEAD, even if it was in the index.>Sounds interesting.>  Santi>


-- Ping Yin��.n��������+%������w��{.n��������n�r������&��z�ޗ�zf���h���~����������_��+v���)ߣ�m


[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]

  Powered by Linux