How to force update local tag cache in git
習慣沉默
習慣沉默 2017-05-02 09:52:19
0
2
1615

When a tag is created remotely and then pulled to the local, and the tag is deleted remotely, the local tag still exists. How to force an update using a command

習慣沉默
習慣沉默

reply all(2)
小葫芦

git fetchTry it

漂亮男人
git fetch -t -p -f

If the remote deletes the tag, the local git push -t will still be pushed up, so it is best to delete the local tag before fetch:

git tag -l | xargs git tag -d
git fetch -t -p -f
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template