From: Junio C Hamano Date: Fri, 01 Jun 2012 22:00:04 GMT Subject: Re: Getting the commit that corresponds to a specific annotated tag Message-ID: <7vd35i1ymz.fsf@alter.siamese.dyndns.org> In-Reply-To: Adam Mercer writes: > For some porcelain I'm writing I need to determine the commit that > corresponds to a given annotated tag, so far I have the following: > > $ git cat-file tag | grep object | awk '{print $2}' > > Is there already some pluming that performs this task? I think you want git rev-parse $tag^{commit} It's kind of scary, though.