From: Jeff King <peff@peff.net>
To: roylee17 <roylee17@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Howto remove accidentally fetched remote tags?
Date: Tue, 9 Dec 2008 01:03:39 -0500 [thread overview]
Message-ID: <20081209060339.GA3174@coredump.intra.peff.net> (raw)
In-Reply-To: <1228793683956-1632369.post@n2.nabble.com>
On Mon, Dec 08, 2008 at 07:34:43PM -0800, roylee17 wrote:
> Is there a convenient way to remove tags which accidentally( forgot adding
> --no-tag ) fetched from a remote repo?
How about
$ git tag -l >tags-to-delete
$ $EDITOR tags-to-delete
$ xargs git tag -d <tags-to-delete
?
> Will git add tag namespace( like branch namespace) in the future?
> In this case, we can manage tags as convenient as branches.
I don't think there any plans for it. You can get something close by
doing this:
$ git config --add remote.origin.fetch '+refs/tags/*:refs/tags/origin/*'
$ git config remote.origin.tagopt --no-tags
The big difference is that you are asking to fetch _all_ tags here,
whereas the usual tag operation is to grab tags that point to anything
you are already getting via branches. But in practice, that is usually
the same content anyway.
-Peff
prev parent reply other threads:[~2008-12-09 6:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-09 3:34 Howto remove accidentally fetched remote tags? roylee17
2008-12-09 6:03 ` Jeff King [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081209060339.GA3174@coredump.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=roylee17@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).