列出所有标签:
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