vscode-gitlens icon indicating copy to clipboard operation
vscode-gitlens copied to clipboard

Check git.replaceTagsWhenPull preference

Open Marc05 opened this issue 9 months ago • 1 comments

Description

The git extension config can be set to enable "git.replaceTagsWhenPull" which overrides local tags when there's a conflict with remote. It'd be useful for gitlens to implement this functionality or check for the existing preference.

Marc05 avatar Apr 10 '25 15:04 Marc05

Would this fix the error I have from gitlens interface, when an existing tag has moved ?

When this happens that's what I see in vscode's gitlens output:

[2025-10-28 07:40:07.130] [GIT          ] [...] git pull --tags • From https://github.com/... •  ! [rejected]        thetag     -> thetag  (would clobber existing tag) [1229ms] (slow)
[2025-10-28 07:40:07.131] Git.pull
Error: Unable to pull because a local tag would be overwritten.
```

gaspachoandalus avatar Oct 28 '25 07:10 gaspachoandalus