On Thu, Mar 15, 2012 at 11:12:26PM +0100, Alex Rønne Petersen wrote: > On 15-03-2012 22:37, H. S. Teoh wrote: [...] > >I did discover an interesting thing about git though... at one point > >in the cleanup process I accidentally reset 1 more commit than I had > >intended, and that commit had no other references to it > >(unreachable). But luckily I still had its hash available, so `git > >merge<hash>` managed to restore it. I guess old unreachable commits > >are still kept until you run git gc. > > > >So that's one of the times when you *don't* want to run git gc. :-) [...] > See also git reflog. It's a life-saver. [...]
Cool! Didn't know about that. Would've needed it if I didn't still have the hash to the orphaned commit. :) Thanks for the tip. T -- Democracy: The triumph of popularity over principle. -- C.Bond