Re: How to create tags outside of refs/tags?
- From
Jay Soffian <jaysoffian@gmail.com>
- Date
- Feb 21, 2011, 17:48 UTC
- Message-ID
- <AANLkTi=CseZLobCoq+Li0AexHR+eaZpe84DG5hGzWHzR@mail.gmail.com>
- In-Reply-To
- <AANLkTimxAhMfPsqEJVyteuTzXLr+QnhcxpJLgaE=y12_@mail.gmail.com>
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:
$ 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.