赞
踩
feat(feature)
意为:新功能
git commit -m 'feat(xxx):xxx'
style
意为:样式上的变动,不影响代码逻辑
git commit -m 'style(xxx):xxx'
fix
意为:修复(修复bug)有时可在相关commit上加上修复的bug的等级
如:
git commit -m 'fix(xxx):xxx'
test
意为:测试代码
git commit -m 'test(xxx):xxx'
chore
意为:构建过程或辅助工具的变动,比如项目新加了别的js插件之类的
git commit -m 'chore(xxx):xxx'
refactor
意为:重构,既不是修复bug也不是样式上的变动,有时可理解为优化
git commit -m 'refactor(xxx):xxx'
文中部分数据来自于:https://www.cnblogs.com/baiqiantao/p/8032018.html
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。