git tag and git describe a specified path/commits/tags
Posted on 2021-01-13 10:40 宋鵬 閱讀(617) 評論(0) 編輯 收藏 引用 所屬分類: Git1. 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
3. push tag name to remote repo
git push origin <branchname> --tags


