From: Linus Torvalds Date: Tue, 11 Oct 2005 17:04:25 GMT Subject: Re: How to restore the original head after `git-reset --hard master^` Message-ID: In-Reply-To: On Tue, 11 Oct 2005, Daniel Barkalow wrote: > > That reminds me: if you lose all of your refs, it's hard to get them back, > because git-fsck-objects aborts if you don't specify any heads or have any > refs. Is there some reason for this check? "git prune" is the reason for that check. Pruning your whole object store is likely not what you want ;) You might make it abort only when "--unreachable" has been specified.. Linus