git fetch tag 获取远程tag
获取远程的tag( 远程存在,本地不存在) git fetch origin tag 2.4.7
出现如下文字,说明获取远程tag成功
remote: Counting objects: 2, done remote: Finding sources: 100% (2/2) remote: Total 2 (delta 0), reused 2 (delta 0) Unpacking objects: 100% (2/2), done. From ssh://project_name * [new tag] 2.4.7 -> 2.4.7 * [new tag] 2.4.6 -> 2.4.6