### 开发&提交流程 ```bash git clone <仓库链接> git checkout -b <你的分支名> # 创建新分支 # 进行开发 git commit -m "提交信息(参考下方规范)" # 提交 git push origin <你的分支名> # 推送,之后去仓库提pr合并进master # 拉取最新代码 git pull origin master ``` ### Commit信息命名规范 `<type>(<scope>): <subject>` * type 为必填项,用于指定 commit 的类型。 * `build`:更改构建系统和外部依赖项(如将 gulp 改为 webpack ,更新某个 npm 包) * `ci`:对 CI 配置文件和脚本的更改 * `docs`:仅仅修改文档说明 * `feat`:增加一个新特性 * `fix`:修复一个 bug * `perf`:更改代码以提高性能 * `refactor`:代码重构时使用 * `style`:不影响代码含义的改动,例如去掉空格、改变缩进、增删分号 * `test`:增加新的测试功能或更改原有的测试模块 * `chore`:杂项 * `revert`:回滚代码时使用
04-07
805
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
10-17
1764
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交