xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

git & Angular.js git commit 规范 All In One

git & Angular.js git commit 规范 All In One

git commit 规范

  1. header (type: (scope) + message)

  2. body

  3. footer

https://github.com/angular/angular/commits/master

https://github.com/angular/angular/commit/e82f56b96f2beff420354dbb10ad84a99ef03325

git commit 提交规范

type 分类

  • feat新功能(feature)✅✅✅
  • fix修复 bug ✅✅✅
  • docs:文档(documentation)✅
  • style: 格式化(不影响代码运行的变动)✅
  • refactor重构/ 代码优化(即不是新增功能,也不是修改 bug 的代码变动)✅✅
  • test:增加测试
  • chore:优化构建过程或辅助工具的变动 ✅

参照 Angular.js 的 commit 规范。

https://www.ruanyifeng.com/blog/2016/01/commit_message_change_log.html

demos

$ git status
$ git add .
$ git commit -m "feat: add Role Module"

# $ git fecth + git merge
$ git pull
$ git push

https://github.com/xgqfrms/git/issues/6

(🐞 反爬虫测试!打击盗版⚠️)如果你看到这个信息, 说明这是一篇剽窃的文章,请访问 https://www.cnblogs.com/xgqfrms/ 查看原创文章!

GitHub PR & git squash & git merge All In One

GitHub 上 merge PR 时合并多个 commits 提交 ✅

https://www.cnblogs.com/xgqfrms/p/16464515.html

refs

https://stackoverflow.com/questions/16955980/git-merge-hotfix-branch-into-feature-branch/58814036#58814036

https://docs.google.com/document/d/1QrDFcIiPjSLDn3EL15IJygNPiHORgU1_OOAqWjiDU5Y/edit#heading=h.greljkmo14y0



©xgqfrms 2012-2021

www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!


posted @ 2019-09-16 13:51  xgqfrms  阅读(733)  评论(1编辑  收藏  举报