Skip to content

fetch: clobber existing tags with --prune-tags#2200

Open
orgads wants to merge 2 commits intogit:masterfrom
orgads:fetch-prune-clobber
Open

fetch: clobber existing tags with --prune-tags#2200
orgads wants to merge 2 commits intogit:masterfrom
orgads:fetch-prune-clobber

Conversation

@orgads
Copy link
Contributor

@orgads orgads commented Feb 15, 2026

This was documented but not implemented.

In the flag description:
prune local tags no longer on remote and clobber changed tags

In the documentation:
... to prune local tags that don't exist on the remote, and force-update those tags that differ.

@gitgitgadget-git
Copy link

There is an issue in commit 8c6462e:
fetch: add a test for --force flag

  • Commit not signed off

@gitgitgadget-git
Copy link

There is an issue in commit b362a60:
fetch: clobber existing tags with --prune-tags

  • Commit not signed off

There are two ways to force-fetch tags that have changed: either by
specifying an explicit forced ref (+refs/tags/*:refs/tags/*), or by
using --force.

The first approach was already tested, but the second was not. This
has now been addressed.

Signed-off-by: Orgad Shaneh <orgad.shaneh@audiocodes.com>
This was documented but not implemented.

In the flag description:
prune local tags no longer on remote *and clobber changed tags*

In the documentation:
... to prune local tags that don't exist on the remote, *and
force-update those tags that differ*.

Signed-off-by: Orgad Shaneh <orgad.shaneh@audiocodes.com>
@orgads orgads force-pushed the fetch-prune-clobber branch from b362a60 to b444fa7 Compare February 15, 2026 20:19
@orgads
Copy link
Contributor Author

orgads commented Feb 15, 2026

/submit

@gitgitgadget-git
Copy link

Submitted as pull.2200.git.git.1771187016.gitgitgadget@gmail.com

To fetch this version into FETCH_HEAD:

git fetch https://github.com/gitgitgadget/git/ pr-git-2200/orgads/fetch-prune-clobber-v1

To fetch this version to local tag pr-git-2200/orgads/fetch-prune-clobber-v1:

git fetch --no-tags https://github.com/gitgitgadget/git/ tag pr-git-2200/orgads/fetch-prune-clobber-v1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant