POV-Ray : Newsgroups : povray.off-topic : Git tutorial : Re: Git tutorial Server Time
30 Jul 2024 04:22:47 EDT (-0400)
  Re: Git tutorial  
From: Darren New
Date: 6 Jun 2011 10:58:25
Message: <4deceb11$1@news.povray.org>
On 5/27/2011 1:31, Joel Yliluoma wrote:
> On Wed, 20 Apr 2011 16:49:57 +0100 in povray.off-topic, Invisible wrote:
>> The problem Git seems to have is that it uses heads to keep track of
>> things. Delete the head and the corresponding commit drops off the face
>> of the Earth.
>
> Actually, there are usually many ways to retrieve a lost head.
> .git/logs/ directory is the most prominent tool or that.

Actually, there are "relog" or "rehead" files or something like that, which 
are basically text files listing each head and the corresponding SHA1 as a 
log file each time you move a head.

Also, doing the equivalent of a chkdsk will give you back any SHA1's that 
don't have anything else pointing to them.

Both intentionally stick around for quite some time (several weeks by default).

-- 
Darren New, San Diego CA, USA (PST)
   "Coding without comments is like
    driving without turn signals."


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.