From: Junio C Hamano Date: Fri, 13 Mar 2009 07:37:21 GMT Subject: Re: newb: Given a commit id, find which branches have it as an ancestor Message-ID: <7v3adhj2ku.fsf@gitster.siamese.dyndns.org> In-Reply-To: <49BA07E5.2080701@viscovery.net> Johannes Sixt writes: > Your best bet is perhaps that you create a branch at the commit > > $ git branch tmp-branch your_sha1 > > so that the commits are not lost, then you cherry-pick them to master. It could be that there are more commits that are built on top of the one you are aware of. Finding unreachable commits from "git fsck --full" might help you find them.