# Shouldn't git fetch also fetch the tags?

2 messages from 2010-09-20 to 2010-09-21. Participants: Felipe Contreras, Kevin Ballard.
Thread: https://gitlist.dev/t/25175

## Felipe Contreras, 2010-09-20 23:00

Subject: Shouldn't git fetch also fetch the tags?
Message-ID: <AANLkTinb=g=Y=s9AqPtLEOqMxPJVqFxRa_2cB4=iNZ4k@mail.gmail.com>
URL: https://gitlist.dev/e/AANLkTinb%3Dg%3DY%3Ds9AqPtLEOqMxPJVqFxRa_2cB4%3DiNZ4k%40mail.gmail.com

```
Hi,

Usually when I do 'git fetch' the tags are fetched too, however, there
is one repo:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.35.y

Where it doesn't happen, and I manually have to 'git fetch --tags'.

What's going on?

-- 
Felipe Contreras

```

## Kevin Ballard, 2010-09-21 01:03

Subject: Re: Shouldn't git fetch also fetch the tags?
Message-ID: <4A6D7554-6CDD-4A92-9E90-27CF555A44CF@sb.org>
URL: https://gitlist.dev/e/4A6D7554-6CDD-4A92-9E90-27CF555A44CF%40sb.org
In-Reply-To: <AANLkTinb=g=Y=s9AqPtLEOqMxPJVqFxRa_2cB4=iNZ4k@mail.gmail.com>

```
`git fetch` will fetch any tags that are reachable from any refs that were fetched. It will not fetch tags that are not otherwise reachable. `git fetch --tags` explicitly instructs git fetch to fetch all tags.

-Kevin Ballard

On Sep 20, 2010, at 4:00 PM, Felipe Contreras wrote:

> Hi,
> 
> Usually when I do 'git fetch' the tags are fetched too, however, there
> is one repo:
> git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.35.y
> 
> Where it doesn't happen, and I manually have to 'git fetch --tags'.
> 
> What's going on?
> 
> -- 
> Felipe Contreras
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

```
