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