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 宋鹏 阅读(559) 评论(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

【推荐】超50万行VC++源码: 大型组态工控、电力仿真CAD与GIS源码库
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理