Re: How to create tags outside of refs/tags?
From: Junio C Hamano <hidden>
Date: 2016-06-15 22:50:37
Jay Soffian [off-list ref] writes:
On Mon, Feb 21, 2011 at 12:21 PM, Christian Halstrick [off-list ref] wrote:quoted
I would like to create a tag which full name is not starting with refs/tags. Is that possible with 'git tag'?Nope.quoted
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).