home | list info | list archive | date index | thread index

Re: [OCLUG-Tech] "git fetch" versus "git fetch --tags"?

On Sun, 28 Jun 2015, Aidan Van Dyk wrote:

> A normal "git fetch" will fetch tags that point to commits being
> fetched.  So if you are fetching new histroy that has a tag pointing
> to it, that tag will be fetched with it.  But by default, fetch only
> pulls "refs/heads/*" (branch namespace).  Adding a "--tags" will
> make it fetch "refs/tags/*" too. This matters if tags are pushed to
> the remote that point to "historic" commits (ones you already have
> in your local repo).

  ah, i figured it was something along those lines, thanks.

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================