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
相关推荐
柚个朵朵4 小时前
IDEA中使用Git
java·git·spring
我是哈哈hh4 小时前
【Git】初始Git及入门命令行
git·gitee·github·版本控制器
lifejump4 小时前
Git命令(Gitee)
git·gitee
极小狐4 小时前
如何创建并使用极狐GitLab 部署令牌?
运维·git·ssh·gitlab·github
Kusunoki_D5 小时前
Win11 配置 Git 绑定 Github 账号的方法与问题汇总
git·github
Justice link6 小时前
Git和Gitlab的部署和操作
git
极小狐7 小时前
极狐GitLab 的合并请求部件能干什么?
运维·git·安全·gitlab·极狐gitlab
vortex57 小时前
Git常用命令简明教程
git
YoungHong199213 小时前
Git Bisect 使用指南:高效定位引入 Bug 的提交
git·bug
极小狐16 小时前
极狐GitLab 的压缩和合并是什么?
运维·git·ssh·gitlab·github