jakub-g / dotfiles

:heavy_dollar_sign: Lots of aliases, mostly git-related
https://gist.github.com/jakub-g
2 stars 0 forks source link

update tags #14

Open jakub-g opened 1 year ago

jakub-g commented 1 year ago

force update tags from upstream

git fetch origin "+refs/tags/*:refs/tags/*"
jakub-g commented 1 year ago
git tag -l | xargs git tag -d
git fetch --tags

https://stackoverflow.com/questions/1841341/remove-local-git-tags-that-are-no-longer-on-the-remote-repository

all answers with prune do not work, perhaps because of

    fetch = +refs/heads/jakub/*:refs/remotes/origin/jakub/*
    tagOpt = --no-tags