Thread (5 messages) flat view 5 messages, 3 authors, 2016-06-15

Re: How to create tags outside of refs/tags?

From: Jay Soffian <hidden>
Date: 2016-06-15 22:50:37

On Mon, Feb 21, 2011 at 12:21 PM, Christian Halstrick
[off-list ref] 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:

$ git update-ref refs/blargh HEAD

If it's an annotated/signed tag you want, you'll have to first create
the tag object with 'git mktag', then use update-ref to create a ref
to that tag.

See git-tag.sh in the contrib directory of git.git.

HTH,

j.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help