In git, how do I sync my tags against a remote server?

前端 未结 8 783
天涯浪人
天涯浪人 2020-12-02 08:37

Is there a way to keep my local git tags in lockstep with a remote\'s tags? That is -- not only get new tags when created (as usual, when fetch-ing/pull

8条回答
  •  萌比男神i
    2020-12-02 09:04

    use these command to sync tags(delete all local then fetch all remote)

    git tag -d $(git tag) # delete all local tags
    git fetch --all # fetch all remote to local
    

提交回复
热议问题