Re: RFC: reflog for deleted branches
- From
Sitaram Chamarty <sitaramc@gmail.com>
- Date
- May 4, 2012, 01:17 UTC
- Message-ID
- <CAMK1S_jvdjLunMPGu6QidzN7YHt0UaENp-e-6kUcy4rcC_T72w@mail.gmail.com>
- In-Reply-To
- <4FA2F7DA.6020108@tu-clausthal.de>
On Fri, May 4, 2012 at 2:55 AM, Sven Strickroth <sven.strickroth@tu-clausthal.de> wrote:
> Hi, > > an often heart question is how to restore deleted branches. Sometimes > those can be restored by using the reflog of the HEAD.
I get by with:
gitk --date-order $(git fsck | grep "dangling.commit" | cut -f3 -d' ') --not --branches --tags --remotes
Works for me because I usually remember *something* about the commit message so then I type in "/" and the string and in a few "Shift-downarrow"s I'm there.