1.chore:项目初始化
git commit -m 'chore: 新建项目'
2.feat:增加新功能
git commit -m 'feat: xx'
3.fix:修改bug的提交
git commit -m 'fix: xxx'
4.style:样式修改、布局修改
git commit -m 'style: xxx'
5.test:部署测试环境
git commit -m 'test: xxx'
也可以换行写注释
例:
git commit -m 'fix: xxx
xxx
xxx'
到你写完的时候记着带上单引号
git强制拉取覆盖本地
git fetch --all && git reset --hard origin/master && git pull