Git 添加tag

Git添加tag比较简单:git

git tag v0.1  # v0.1就是要打的tag

列出本地的tag:服务器

git tag

显示结果:code

#
v2.0.170
v2.0171
v2.0172
v2.0173

将tag 提交到远程仓库:it

git push origin --tags #

这行命令会将本地当前分支的代码都提交到服务器co

相关文章
相关标签/搜索