Created
December 7, 2015 05:47
-
-
Save QQ1350995917/cc7a904eb9e75a8a7678 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git tag # 在控制台打印出当前仓库的所有标签 | |
git tag release1.0 # 创建轻量标签 | |
git tag -a release1.0 -m "version 1.0.4 ->release for 1.0" # 创建附注标签 | |
git checkout tagName # 切换 | |
git show release1.0 # git show命令可以查看标签的版本信息 | |
git tag -d release1.0 # 删除标签 | |
git tag -a release1.0 commitID # 基于提交ID创建 | |
git push origin tagName # 提交到服务器 | |
git push origin –tags # 将本地所有标签一次性提交到服务器 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment