|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |