git tag -a 版本号 -m '版本注释version 1.0'
git push --tags
git checkout 版本号
(此时会有下面的提示,大意是你能够作实验性修改,不会影响到其余人获取这个版本。这些修改push不了,若是你要保存这些修改而且push,能够建立一个分支去push:git checkout -b new_branch_name, 这些修改是在checkout的版本以后修改的)git
You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by performing another checkout. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -b with the checkout command again. Example: git checkout -b new_branch_name
git tag
5.删除远程标签this
git push origin --delete tag 版本号
6.删除本地标签spa
git tag -d 版本号