首页 > 其他分享 >基于git 提交记录打标签

基于git 提交记录打标签

时间:2022-10-16 10:06:14浏览次数:51  
标签:git name -- 标签 tag 提交 commit


列出所有标签:
git tag -n

获取历史的commit提交记录:
git log --pretty=oneline --abbrev-commit

打标签:
git tag -a "指定标签名" -m "tag注释说明" commitID

将本地tag推动到远程:
git push origin tag_name

获取指定tag代码:
git checkout -b branch_name tag_name

 

标签:git,name,--,标签,tag,提交,commit
From: https://blog.51cto.com/u_14991139/5760123

相关文章