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

git pull --prune --prune-tags yields a usage error In 2.45.0

From
DSDavid Sanderson <yelliott@gmail.com>
Date
May 13, 2024, 23:11 UTC
Message-ID
<CAC-6ESEfnjK1ubrzoAfUsegM55e55uKugCPSfxnBC607dmZJRA@mail.gmail.com>

I noticed that "git help pull" mentioned the flag --prune-tags in conjunction with --prune, but actually supplying this flag to "git pull" results in a usage error. For instance, the command "git pull --prune --prune-tags" fails with a usage error. I would have expected that this would work, since it works with "git fetch".

I could use "git fetch --prune --prune-tags" as I expected, and "git help fetch" does describe --prune-tags on its own as well as in the help for --prune.

I confirmed that this behavior still exists in git version 2.45.0.
David Sanderson
Next: Patrick Steinhardt
Message 1 of 2 in “git pull --prune --prune-tags yields a usage error In 2.45.0”
  1. David SandersonMay 13, 2024
  2. Patrick SteinhardtMay 14, 2024

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.