GIT本地pull远程失败,本地tag与远程仓库不匹配问题

2019-05-15 

问题现象:

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

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

$git log

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

$git tag

原因分析:  

 (待分析)

2019-05-16

解决方案:

  同步远程tag:

  1、删除本地全部tag:

git tag -l|xargs git tag -d

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

git fetch origin --prune
分享即成长
原文地址:https://www.cnblogs.com/bobkingblog/p/10876781.html