git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Fetch and -t

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 12, 2013, 02:24 UTC
Message-ID
<7v621yjmla.fsf@alter.siamese.dyndns.org>
In-Reply-To
<4B2793BF110AAB47AB0EE7B9089703854FEE40B6@fmsmsx110.amr.corp.intel.com>
"Olsen, Alan R" <alan.r.olsen@intel.com> writes:
Show 5 quoted lines
> I have found that if I add a remote and do a "git fetch -t -f
> remote_name" that it *only* pulls tags.
>
> Reading the man page it seems like it should pull all the remotes
> and all the tags and the commits only reachable by tags.
This is what appears in the documentation we ship these days.
    -t::
    --tags::
            This is a short-hand for giving "refs/tags/*:refs/tags/*"
            refspec from the command line, to ask all tags to be fetched
            and stored locally.  Because this acts as an explicit
            refspec, the default refspecs (configured with the
            remote.$name.fetch variable) are overridden and not used.
http://git-htmldocs.googlecode.com/git/git-fetch.html
Previous discussion:
    http://thread.gmane.org/gmane.comp.version-control.git/180636
A more recent one:
    http://thread.gmane.org/gmane.comp.version-control.git/211439/focus=211464
Previous: Olsen, Alan RNext: Olsen, Alan R
Message 2 of 3 in “Fetch and -t”
  1. Olsen, Alan RFeb 12, 2013
  2. Junio C HamanoFeb 12, 2013
  3. Olsen, Alan RFeb 12, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.