* Howto remove accidentally fetched remote tags?
@ 2008-12-09 3:34 roylee17
2008-12-09 6:03 ` Jeff King
0 siblings, 1 reply; 2+ messages in thread
From: roylee17 @ 2008-12-09 3:34 UTC (permalink / raw)
To: git
Hi,
Is there a convenient way to remove tags which accidentally( forgot adding
--no-tag ) fetched from a remote repo?
Will git add tag namespace( like branch namespace) in the future?
In this case, we can manage tags as convenient as branches.
Thanks.
Roy
--
View this message in context: http://n2.nabble.com/Howto-remove-accidentally-fetched-remote-tags--tp1632369p1632369.html
Sent from the git mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Howto remove accidentally fetched remote tags?
2008-12-09 3:34 Howto remove accidentally fetched remote tags? roylee17
@ 2008-12-09 6:03 ` Jeff King
0 siblings, 0 replies; 2+ messages in thread
From: Jeff King @ 2008-12-09 6:03 UTC (permalink / raw)
To: roylee17; +Cc: git
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-12-09 6:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-09 3:34 Howto remove accidentally fetched remote tags? roylee17
2008-12-09 6:03 ` Jeff King
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).