How to overwrite local tags with git fetch?
git
Solution
`git fetch --tags` will do it.
From the docs (description of the `--tags` parameter):
Most of the tags are fetched automatically as branch heads are downloaded, but tags that do not point at objects reachable from the branch heads that are being tracked will not be fetched by this mechanism. This flag lets all tags and their associated objects be downloaded. The default behavior for a remote may be specified with the remote.<name>.tagopt setting.
As per gerrard00's answer, the `--force` parameter is necessary to overwrite local tags in git Ver2.20 or newer. (The full command being `git fetch --tags --force`)
Problem
How to overwrite local tags with git fetch? I want to replace local tags with remote tags.