標籤是指向commit的不可變指針python
git checkout master git tag v1.0 ##直接打標籤 ###須要給以前的提交打標籤 ###用git log找到commit id git tag v0.9 f52c633 git show v0.9 ##查看指定的標籤內容 ###給標籤添加說明 git tag -a v0.1 -m "version 0.1 released" 1094adb git tag ##查看全部標籤
git tag -d v0.1
git push origin v1.0
git push origin --tags
###先刪除本地標籤 git tag -d v0.9 ###再從遠程刪除 git push origin :refs/tags/v0.9