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

git fetch --no-tags still fetch tags when remote name is provided

From
BDBaptiste Delestre <baptisted@eugensystems.com>
Date
Jul 17, 2019, 11:10 UTC
Message-ID
<07af82bd-0f4d-77b3-b5ae-e1efc887ade5@eugensystems.com>

Hi! I have two remotes with different tags, so when I use "git fetch" it removes the tag from the other remote and add tag from the origin remote. So I tried to use "git fetch --no-tags" to prevent this behavior and I have no use for those tags locally. The problem is it works for the origin remote but when I fetch the other remote with "git fetch --no-tags other" it fetch tags. The same happen when fetching a group or with "git fetch --all --no-tags". I have tried to set the "remote.<remote>.tagOpt = --no-tags" option in git config with no difference in behavior.

Is there a way to force tags not to be updated at all with "git fetch --all" in this case?

(git version 2.22.0.windows.1 and git version 2.18.0.windows.1) Regards, Baptiste

Message 1 of 1 in “git fetch --no-tags still fetch tags when remote name is provided”
  1. Baptiste DelestreJul 17, 2019

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.