技术CodeDevOps/SRE

Git 17使用Tag标签 系统版本号管理

2018-11-30  本文已影响0人  昵称啦啦啦

GIt 系统版本号管理

=========

命令

系统版本号管理

任何软件系统,应用程序在发布时都应该给一个版本号,来管理每次发布的内容,便于今后的管理。

1.1.4

NNN.abc.xxx

# 为当前状态打版本号 并查看
git tag v1.0.0
git tag

# 修改 index.html 文件 并提交到本地库
nano index.html
git add .
git commit -m "fixed bug1"
# 再次打上版本
git tag v1.0.1
git tag

# 修改 index.html 文件 并提交到本地库
nano index.html
git add .
git commit -m "fixed bug2"
# 再次打上版本
git tag v1.0.2
git tag

#新功能的增加
nano index.html
git add .
git commit -m "addend feature"
# 再次打上版本
git tag v1.1.0
git tag
# 查看版本
git show v1.0.1
上一篇 下一篇

猜你喜欢

热点阅读