git本地tag和远程不匹配

git本地的tag和远程仓库不匹配:

2020-06-20

现象:

  1、git log 命令显示没有远端的tag版本

  2、GIT本地目录无法pull下远程仓库已新增的内容,一直提示Already up to date 

  3、本地tag数量比远程仓库多git tag 命令查看本地tag数

原因:

  。。。

解决方案:

  同步远程tag:

    1、删除本地全部tag:

git tag -l|xargs git tag -d

    2、更新下来远程全部tag:

git fetch origin --prune

  [OR 直接找到tag对应的commit id]

posted @ 2020-06-20 15:04  DomiSong  阅读(1566)  评论(0)    收藏  举报