{"id":20364602,"url":"https://github.com/septwong/git-commit-message","last_synced_at":"2026-03-19T15:28:44.608Z","repository":{"id":260568539,"uuid":"881693814","full_name":"septwong/git-commit-message","owner":"septwong","description":"Git commit message and git emoji","archived":false,"fork":false,"pushed_at":"2025-09-25T08:11:02.000Z","size":44,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-05T20:44:59.986Z","etag":null,"topics":["git-commit","git-emoji"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/septwong.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-11-01T03:28:10.000Z","updated_at":"2025-09-25T08:11:05.000Z","dependencies_parsed_at":"2025-01-15T03:57:28.263Z","dependency_job_id":"0d18114e-3db2-4e44-9cec-633b9b20a711","html_url":"https://github.com/septwong/git-commit-message","commit_stats":null,"previous_names":["septemberwh/git-commit-message","septwong/git-commit-message"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/septwong/git-commit-message","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/septwong%2Fgit-commit-message","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/septwong%2Fgit-commit-message/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/septwong%2Fgit-commit-message/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/septwong%2Fgit-commit-message/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/septwong","download_url":"https://codeload.github.com/septwong/git-commit-message/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/septwong%2Fgit-commit-message/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29555365,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T18:16:07.221Z","status":"ssl_error","status_checked_at":"2026-02-17T18:16:04.782Z","response_time":100,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["git-commit","git-emoji"],"created_at":"2024-11-15T00:12:42.364Z","updated_at":"2026-02-17T19:34:23.416Z","avatar_url":"https://github.com/septwong.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Git Commit Message\n\n\u003e Git 提交规范\n\n- [Git 指令](./docs/git-command.md)\n- [清理Github仓库中敏感信息](./docs/clean_sensitive_file.md)\n- [Angular Commit Message Conventions](https://github.com/angular/angular/blob/22b96b9/CONTRIBUTING.md#-commit-message-guidelines)\n- [ConventionalCommits.org](https://www.conventionalcommits.org/zh-hans)\n\n## Git commit\n\nCommit message 包括三个部分：Header，Body 和 Footer。\n\nHeader 的格式比较特殊，包括三个字段：type（必需）、scope（可选）和subject（必需）。\n\n```text\n\u003ctype\u003e(\u003cscope\u003e): \u003csubject\u003e\n\u003cBLANK LINE\u003e\n\u003cbody\u003e\n\u003cBLANK LINE\u003e\n\u003cfooter\u003e\n```\n\n\u003e Header 是必需的，Body 和 Footer 可以省略。\n\n```text\n\u003ctype\u003e(\u003cscope\u003e): \u003csubject\u003e\n  │       │             │\n  │       │             └─⫸ 主要描述，尽量简短\n  │       │\n  │       └─⫸ Commit Scope(可选): common | 业务模块[挂号 就诊人 用户子系统] 等等\n  │\n  └─⫸ Commit Type: build|ci|docs|feat|fix|perf|refactor|style|test\n```\n\n\u003e git commit - m 'feat(common): util 中加入节流函数'  \n\u003e `-m` 参数 : 指定 commit message\n\n*示例：*\n\n```text\ndocs(changelog): update changelog to beta.5\n```\n\n```text\nfix(release): need to depend on latest rxjs and zone.js\n\nThe version in our package.json gets copied to the one we publish, and users need the latest of these.\n```\n\n### type\n\n|#|字符|文案|备注|颜色|规范|\n|:---:|:---:|:---|:---|:---:|:---:|\n|1|`build`|构建|对构建系统或外部依赖项进行了更改（示例范围：gulp、broccoli、npm）|`#d93f0b`|Angular|\n|2|`ci`|持续集成|对 CI 配置文件和脚本进行了更改（示例范围：Travis、Circle、BrowserStack、SauceLabs）|`#c5def5`|Angular|\n|3|`docs`|文档注释|对文档进行了修改|`#0075ca`|Angular|\n|4|`feat`|功能|增加新的特征|`#a2eeef`|Angular|\n|5|`fix`|修复|修复 BUG|`#d73a4a`|Angular|\n|6|`perf`|性能|提高性能的代码更改|`#5319e7`|Angular|\n|7|`refactor`|重构|既不修复错误也不添加功能的代码更改|`#006b75`|Angular|\n|8|`style`|样式|不影响代码含义的更改（空格、格式、缺少分号等）|`#5c879d`|Angular|\n|9|`test`|测试|添加缺失的测试或更正现有的测试|`#fbca04`|Angular|\n|-|-|-|-|-|-|-|\n|-|`chore`|琐事|依赖项/修改脚手架配置等|`#424242`|-|\n|-|`revert`|撤销|撤消更改|`#E91E63`|-|\n|-|`workflow`|工作流|工作流程改进|`#8BC34A`|-|\n|-|`wip`|开发中|开发中|`#9E9E9E`|-|\n|-|`types`|类型定义|类型定义|`#CE93D8`|-|\n|-|`release`|发布|发布版本|`#2ECC71`|-|\n|-|`opt`|优化|优化业务代码|`#FF9800`|-|\n\n### scope\n\n可选: 没有统一的约定，一般提交时填写涉及的范围即可（公共模块 | 业务模块 ）\n\n### subject\n\n是 commit 目的的简短描述，不超过50个字符。\n\n```md\n- 以动词开头，使用第一人称现在时，比如change，而不是changed或changes\n- 第一个字母小写\n- 结尾不加句号（.）\n```\n\n### body\n\n是对本次 commit 的详细描述，可以分成多行。\n\n### footer\n\n- 不兼容变动: `BREAKING CHANGE: something.`\n- 关闭 Issue: `Closes #100, #101, #102`\n\n## Git emoji\n\n\u003e git commit -m \":tada: initialize Repo\"\n\n|               emoji                |           emoji 代码            |    commit 说明    |\n| ---------------------------------- | ----------------------------- | --------------- |\n|            :tada: (庆祝)             |           `:tada:`            |      初次提交       |\n|             :new: (全新)             |            `:new:`            |      引入新功能      |\n|          :bookmark: (书签)           |         `:bookmark:`          |     发行/版本标签     |\n|            :bug: (bug)             |            `:bug:`            |     修复 bug      |\n|         :ambulance: (急救车)          |         `:ambulance:`         |      重要补丁       |\n|    :globe_with_meridians: (地球)     |   `:globe_with_meridians:`    |     国际化与本地化     |\n|          :lipstick: (口红)           |         `:lipstick:`          |   更新 UI 和样式文件   |\n|          :clapper: (场记板)           |          `:clapper:`          |     更新演示/示例     |\n|       :rotating_light: (警车灯)       |      `:rotating_light:`       |  移除 linter 警告   |\n|           :wrench: (扳手)            |          `:wrench:`           |     修改配置文件      |\n|       :heavy_plus_sign: (加号)       |      `:heavy_plus_sign:`      |     增加一个依赖      |\n|      :heavy_minus_sign: (减号)       |     `:heavy_minus_sign:`      |     减少一个依赖      |\n|         :arrow_up: (上升箭头)          |         `:arrow_up:`          |      升级依赖       |\n|        :arrow_down: (下降箭头)         |        `:arrow_down:`         |      降级依赖       |\n|   :zap: (闪电)\u003cbr\u003e:racehorse: (赛马)   |   `:zap:`\u003cbr\u003e`:racehorse:`    |      提升性能       |\n| :chart_with_upwards_trend: (上升趋势图) | `:chart_with_upwards_trend:`  |    添加分析或跟踪代码    |\n|           :rocket: (火箭)            |          `:rocket:`           |      部署功能       |\n|     :white_check_mark: (白色复选框)     |     `:white_check_mark:`      |      增加测试       |\n|     :memo: (备忘录)\u003cbr\u003e:book: (书)     |     `:memo:`\u003cbr\u003e`:book:`      |      撰写文档       |\n|           :hammer: (锤子)            |          `:hammer:`           |      重大重构       |\n|            :art: (调色板)             |            `:art:`            |   改进代码结构/代码格式   |\n|            :fire: (火焰)             |           `:fire:`            |     移除代码或文件     |\n|           :pencil2: (铅笔)           |          `:pencil2:`          |     修复 typo     |\n|        :construction: (施工)         |       `:construction:`        |      工作进行中      |\n|        :wastebasket: (垃圾桶)         |        `:wastebasket:`        |      废弃或删除      |\n|         :wheelchair: (轮椅)          |        `:wheelchair:`         |      可访问性       |\n|     :construction_worker: (工人)     |    `:construction_worker:`    |   添加 CI 构建系统    |\n|         :green_heart: (绿心)         |        `:green_heart:`        |   修复 CI 构建问题    |\n|             :lock: (锁)             |           `:lock:`            |     修复安全问题      |\n|            :whale: (鲸鱼)            |           `:whale:`           |   Docker 相关工作   |\n|            :apple: (苹果)            |           `:apple:`           |  修复 macOS 下的问题  |\n|           :penguin: (企鹅)           |          `:penguin:`          |  修复 Linux 下的问题  |\n|       :checkered_flag: (旗帜)        |      `:checkered_flag:`       | 修复 Windows 下的问题 |\n| :twisted_rightwards_arrows: (交叉箭头) | `:twisted_rightwards_arrows:` |      分支合并       |","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseptwong%2Fgit-commit-message","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseptwong%2Fgit-commit-message","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseptwong%2Fgit-commit-message/lists"}