From: Sebastian Schuberth Date: Fri, 01 Apr 2016 10:00:44 GMT Subject: Re: Trouble with cat-file on tags Message-ID: In-Reply-To: On 4/1/2016 11:32, Sebastian Schuberth wrote: > However, I still get information about the commit oject iintsead of the > tag object. Is this expected? Solved this one, too: Yes it is. I was misreading the docs: "If is specified, the raw (though uncompressed) contents of the will be returned." This means $ git cat-file tag refs/tags/v0.1.2 displays the *contents* of the tag, not the tag itself. Which leads me to the next question: For a given name of an annotated tag, how to get the hash of the tag object? The solution I found for now: $ git show-ref --tags -- v0.1.2 92b67e2b0626519ef8cd4e9cacb2bdafba6d53f0 refs/tags/v0.1.2 Regards, Sebastian