git标签基础

打标签:git可以给仓库历史中某个提交打上标签,以示重要,比较有代表人们会使用这个功能来标记发布结点(V1.0,V2.0)

c 复制代码
列出本地标签:
git tag  --list 
git tag -l "V1.85*"
列出远端仓库的中所有标签
git ls-remote --tags


给标签添加一些描述信息
git tag -a v1.3 -m "my version 1.4"

显示附注信息
git show v1.3 

删除本地标签
git tag -d v1.4-lw 
删除远端标签
git push origin --delete tag xxx 

获取远端标签到本地
git fetch origin tag  tag名

提交tag到远程仓库
git push origin  tag名


后期打标签
git log --pretty=oneline
git tag -a tag名 4c73xxx
相关推荐
wh_xia_jun10 小时前
Git 分支合并操作备忘录
git
满天星830357712 小时前
【Git】原理及使用(三)(分支管理)
linux·git
像风一样的男人@15 小时前
warning: could not find UI helper ‘git-credential-manager-ui‘
git·ui
代钦塔拉17 小时前
Git & GitHub 从入门到精通:全流程实战教程
git·github
晚风吹红霞18 小时前
Linux下的趣味编程 —— 进度条、Git版本控制与GDB调试实战
linux·运维·git
xlq2232218 小时前
7.git
git
Ws_18 小时前
Git + Gerrit 第六课:commit --amend、Patch Set 与 Change-Id
git
AIMath~1 天前
向github中上传文件过大超过50M怎么办
网络·git·github
AIMath~2 天前
如何将一个新的文件夹使用git 工具提交到github新仓库中
git·github
满天星83035772 天前
【Git】原理及使用(二) (版本回退)
linux·git