posts - 54, comments - 32, trackbacks - 0, articles - 0

git tag and git describe a specified path/commits/tags

Posted on 2021-01-13 10:40 宋鹏 阅读(584) 评论(0)  编辑 收藏 引用 所属分类: Git
1. Create a tag with patterned name
git tag "tagname_v1.02"
(one tag is pointed to a specified commit)
2. get tag describe to use in software version name
git describe --tags --long --dirty=* --match "tagname*"
> tagname_v1.02-0-g59584af

3. push tag name to remote repo
git push origin <branchname> --tags

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   博问   Chat2DB   管理