From: Junio C Hamano Date: Mon, 21 Feb 2011 23:52:09 GMT Subject: Re: How to create tags outside of refs/tags? Message-ID: <7vpqqlgd3q.fsf@alter.siamese.dyndns.org> In-Reply-To: Jay Soffian writes: > On Mon, Feb 21, 2011 at 12:21 PM, Christian Halstrick > wrote: >> I would like to create a tag which full name is not starting with >> refs/tags. Is that possible with 'git tag'? > > Nope. > >> If not, is there any other command to create such tags? > > If it's just a light-weight tag, you can use the low-level (plumbing) > command update-ref to create an arbitrary ref: That is a very unfriendly answer. You shouldn't be answering everybody who ask "How do I shoot my foot off? git-foo command does not seem to let me do so" with "Here is how to do that". > $ git update-ref refs/blargh HEAD At least, please say "that thing is no longer a tag, many git commands would complain because refs/blargh does not have two-levels, and do not ever think about starting that thing without 'refs/', or your 'gc' may end up losing that object" when you give a potentially dangerous hint like that (the last one being the most important).