Re: How to create tags outside of refs/tags?
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 21, 2011, 23:52 UTC
- Message-ID
- <7vpqqlgd3q.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <AANLkTi=CseZLobCoq+Li0AexHR+eaZpe84DG5hGzWHzR@mail.gmail.com>
Jay Soffian <jaysoffian@gmail.com> writes:
Show 11 quoted lines
> On Mon, Feb 21, 2011 at 12:21 PM, Christian Halstrick > <christian.halstrick@gmail.com> 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).