{"id":16806327,"url":"https://github.com/carhartl/git-commit-template","last_synced_at":"2026-04-12T22:35:06.805Z","repository":{"id":171272665,"uuid":"647646360","full_name":"carhartl/git-commit-template","owner":"carhartl","description":"Command-line utility for managing a Git commit message template within the current project.","archived":false,"fork":false,"pushed_at":"2024-10-18T04:14:26.000Z","size":138,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-19T07:04:06.903Z","etag":null,"topics":["cli","git","go"],"latest_commit_sha":null,"homepage":"","language":"Go","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/carhartl.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}},"created_at":"2023-05-31T08:19:29.000Z","updated_at":"2024-10-18T07:44:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"e477478f-bb0d-4240-a0fb-db5b061f7787","html_url":"https://github.com/carhartl/git-commit-template","commit_stats":null,"previous_names":["carhartl/git-commit-message","carhartl/git-commit-template"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carhartl%2Fgit-commit-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carhartl%2Fgit-commit-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carhartl%2Fgit-commit-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carhartl%2Fgit-commit-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/carhartl","download_url":"https://codeload.github.com/carhartl/git-commit-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244011086,"owners_count":20383358,"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":["cli","git","go"],"created_at":"2024-10-13T09:50:42.944Z","updated_at":"2026-04-12T22:35:06.792Z","avatar_url":"https://github.com/carhartl.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# git-commit-template\n\n[![CI](https://github.com/carhartl/git-commit-template/actions/workflows/ci.yml/badge.svg)](https://github.com/carhartl/git-commit-template/actions/workflows/ci.yml)\n\nCommand-line utility for managing a Git commit message template within the current project.\n\n- Optional issue reference\n- Optional Co-authored-by line\n\n## Installation\n\nWith [Go](https://golang.org/):\n\n```bash\ngo install github.com/carhartl/git-commit-template\n```\n\nVia [Homebrew](https://brew.sh/):\n\n```bash\nbrew install carhartl/tap/git-commit-template\n```\n\n## Usage\n\nPass issue ref numbers with or without prefix:\n\n```bash\ngit-commit-template set --issue 123 --dry-run\ngit-commit-template set --issue #123 --dry-run\n```\n\nProduces:\n\n```\nSubject\n\nAddresses: #123\n```\n\nPass co-author with fuzzy matching entries in author file:\n\n```bash\necho 'John Doe \u003cjohn@example.com\u003e' \u003e\u003e $HOME/.git-commit-template-authors\necho 'Mary Tester \u003cmary@example.com\u003e' \u003e\u003e $HOME/.git-commit-template-authors\ngit-commit-template set --pair doe --dry-run\n```\n\nProduces:\n\n```\nSubject\n\nCo-authored-by: John Doe \u003cjohn@example.com\u003e\n```\n\nMultiple co-authors:\n\n```bash\ngit-commit-template set --pair doe --pair mary --dry-run\n```\n\nProduces:\n\n```\nSubject\n\nCo-authored-by: John Doe \u003cjohn@example.com\u003e\nCo-authored-by: Mary Tester \u003cmary@example.com\u003e\n```\n\nTip:\n\nDue to the executable's naming you can also call it like so:\n\n```bash\ngit commit-template ...\n```\n\nE.g. use with your favorite Git alias...\n\n## Configuration\n\n| Env var                            | Default                                                                                                                            |\n| ---------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |\n| `GIT_COMMIT_TEMPLATE_AUTHOR_FILE`  | `$HOME/.git-commit-template-authors`                                                                                               |\n| `GIT_COMMIT_TEMPLATE_ISSUE_PREFIX` | `#`                                                                                                                                |\n| `GIT_COMMIT_TEMPLATE_TEMPLATE`     | `Subject{{if .Issue}}\\n\\nAddresses: {{.Issue}}{{end}}{{if .CoAuthors}}\\n{{end}}{{range .CoAuthors}}\\nCo-authored-by: {{.}}{{end}}` |\n\n`GIT_COMMIT_TEMPLATE` is a Go template string.\n\n## Also see\n\nhttps://cbea.ms/git-commit/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarhartl%2Fgit-commit-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcarhartl%2Fgit-commit-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarhartl%2Fgit-commit-template/lists"}