From: Will Palmer Date: Tue, 20 Jul 2010 06:31:59 GMT Subject: Re: Question about 'branch -d' safety Message-ID: <1279607519.3534.14.camel@dreddbeard> In-Reply-To: <4C451272.8000802@workspacewhiz.com> On Mon, 2010-07-19 at 21:05 -0600, Joshua Jensen wrote: > For my sake, how is the previous tip the easiest-to-recover part of a > deleted branch? How do you go about finding the lost object? > > Josh git fsck | grep '^dangling commit' | while read dangling commit hash; do git log -1 --format='%at %h %s' $hash done | sort -nr | less -FRSX -- -- Will