
Git
文章平均质量分 51
如果有了可惜
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
husky + commitlint约束团队 GIT commit message
安装 npm i -D @commitlint/config-conventional @commitlint/cli husky npx husky-init 删除 .husky/pre-commit 文件,或者将 npm test 改成正确的 npx husky add .husky/commit-msg 'npx --no-install commitlint --edit "$1"' 使 husky 和 commitlint.config.js 关联 commitlint.config.js原创 2021-10-28 10:42:11 · 251 阅读 · 0 评论 -
Vue 项目 Git 提交前进行检测
前端项目参与人多的时候,实现代码风格统一,删除 console/debug 等开发代码是比较麻烦的。 代码风格统一可以通过配置 eslint-+ prettier 实现通过自定义规则后再编译, 但是 console/debug 等规则可以随 Git 一起推送到远程仓库。甚至打包生产出现 console.log 这种代码 开始 npm i husky pretty-quick -D 新增 GitHooks.sh #!/bin/bash red=`tput setaf 1` green=`tput原创 2021-01-04 09:19:53 · 1150 阅读 · 0 评论 -
Git使用
Git是一个分布式管本控制工具 起步 安装:gitbash.exe 项目本地仓库 :git init git add . git commit -m 'xx' git pull git log 查看提交日志 git log --oneline 查看提交说明 所有人拉项目不是 git clone ,而是 git pull 定义 开源的分布式版本控制系统,...原创 2019-05-26 23:48:09 · 403 阅读 · 0 评论