{"id":13815697,"url":"https://github.com/cimhealth/git-toolkit","last_synced_at":"2025-05-15T09:33:05.160Z","repository":{"id":151775742,"uuid":"68704707","full_name":"cimhealth/git-toolkit","owner":"cimhealth","description":"Git工具集","archived":false,"fork":false,"pushed_at":"2020-04-02T07:54:07.000Z","size":159,"stargazers_count":37,"open_issues_count":1,"forks_count":24,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-19T11:53:10.560Z","etag":null,"topics":["cimhealth","config","git","hooks","shell","toolkits"],"latest_commit_sha":null,"homepage":"https://cimhealth.github.io/git-toolkit","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cimhealth.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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}},"created_at":"2016-09-20T11:21:39.000Z","updated_at":"2024-01-09T13:15:10.000Z","dependencies_parsed_at":"2023-07-31T10:16:37.391Z","dependency_job_id":null,"html_url":"https://github.com/cimhealth/git-toolkit","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cimhealth%2Fgit-toolkit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cimhealth%2Fgit-toolkit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cimhealth%2Fgit-toolkit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cimhealth%2Fgit-toolkit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cimhealth","download_url":"https://codeload.github.com/cimhealth/git-toolkit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254314021,"owners_count":22050155,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["cimhealth","config","git","hooks","shell","toolkits"],"created_at":"2024-08-04T04:03:54.503Z","updated_at":"2025-05-15T09:33:04.891Z","avatar_url":"https://github.com/cimhealth.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# Git Toolkit\n\n\n\u003e 人类懒惰的本性和不满足的本性是驱使科技发展的源泉......\n\n## 安装\n\n**使用curl**\n\n```bash\nbash -c \"$(curl -fsSL https://raw.githubusercontent.com/tonydeng/git-toolkit/master/installer.sh)\"\n```\n\n**使用wget**\n\n```bash\nbash -c \"$(wget https://raw.githubusercontent.com/tonydeng/git-toolkit/master/installer.sh -O -)\"\n```\n\n## git toolkit介绍\n\n本工具集包含几个部分，自定义命令，Hook脚本，以及配置模板\n\n### 自定义命令\n\n#### git toolkit\n\n提供本工具集的管理命令。\n\n**查看帮助**\n\n```bash\ngit toolkit help\n```\n\n**卸载本工具集**\n\n```bash\ngit toolkit uninstall\n```\n\n**更新本工具集**\n\n```bash\ngit toolkit update\n```\n\n#### git ci\n\n提供交互式`git commit`的命令，用于定制统一`commit message`。\n\n\u003e 用于替换[Commitizen](https://github.com/commitizen/cz-cli)\n\n```bash\ngit ci\n\n选择您正在提交的类型:\n        1. feat: 新功能（ Introducing new features ）\n        2. fix: 修补bug ( Fixing a bug )\n        3. docs: 文档（ Writing docs ）\n        4. style: 格式（ Improving structure / format of the code ）\n        5. refactor: 重构（ Refactoring code ）\n        6. test: 增加测试 ( Adding tests )\n        7. chore: 构建过程或辅助工具的变动 ( Changing configuration files. )\n        8. perf:  改善性能 ( Improving performance )\n        0. quit: 退出 ( Exit )\n```    \n\n#### git clog\n\n提供项目的`CHANGELOG`输出，支持输出到终端或指定文件中，可以使用`git clog -h`来查看帮助信息。\n\n输出的格式大致如下，符合`Markdown`语法([查看样例](CHANGELOG.md))：\n\n```\n# tag\n\n#### [author](mailto:email) (commit_count)\n\n* commit message (commit date) [commit_short_sha1](commit_url)\n* commit message (commit date) [commit_short_sha1](commit_url)\n```\n\n显示效果如下：\n\n![git-toolkit changelog](changelog.jpg)\n\n### Hook脚本\n\n#### commit-msg\n\n用于验证每次提交的`commit message`是否符合规范，如果不符合规范，则提交不成功\n\n### 配置\n\n#### git config --global commit.template\n\n配置统一的`commit message`模板\n\n#### git config --global core.hooksPath\n\n配置制定的Hook脚本的目录，使用本项目的git hook脚本\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcimhealth%2Fgit-toolkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcimhealth%2Fgit-toolkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcimhealth%2Fgit-toolkit/lists"}