{"id":27047261,"url":"https://github.com/r2-g2/githooks","last_synced_at":"2026-05-17T17:41:00.246Z","repository":{"id":65590695,"uuid":"595319555","full_name":"R2-G2/GitHooks","owner":"R2-G2","description":"[GH] my default Git hooks","archived":false,"fork":false,"pushed_at":"2023-02-01T22:40:44.000Z","size":7,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T06:29:46.365Z","etag":null,"topics":["git","hooks","post-commit","templates"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/R2-G2.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-30T20:56:03.000Z","updated_at":"2025-03-26T23:31:42.000Z","dependencies_parsed_at":"2023-02-16T12:01:16.286Z","dependency_job_id":null,"html_url":"https://github.com/R2-G2/GitHooks","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/R2-G2/GitHooks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/R2-G2%2FGitHooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/R2-G2%2FGitHooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/R2-G2%2FGitHooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/R2-G2%2FGitHooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/R2-G2","download_url":"https://codeload.github.com/R2-G2/GitHooks/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/R2-G2%2FGitHooks/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266807161,"owners_count":23987426,"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","status":"online","status_checked_at":"2025-07-24T02:00:09.469Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","hooks","post-commit","templates"],"created_at":"2025-04-05T06:28:49.716Z","updated_at":"2026-05-17T17:40:55.215Z","avatar_url":"https://github.com/R2-G2.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- Copyright (c) 2022-2023 Ralf Grawunder --\u003e\n\n# GitHooks: my default Git hooks\n\n## Setup\n\n### Universal\n\nCreate the *hooks templatedir*.\n\n```shell\nmkdir -p /CUSTOM/PATH/hooks\n```\n\nAnnounce the *templatedir* to **Git**.\n\n```shell\neditor /PATH/TO/.gitconfig\n```\n\n```gitconfig\n[init]\n\ttemplatedir = /CUSTOM/PATH\n```\n\n### Personal\n\n```shell\nmkdir -p ~/.gittemplates/hooks\nvim ~/.gitconfig\n```\n\n```gitconfig\n[init]\n\ttemplatedir = ~/.gittemplates\n```\n\n## Usage\n\n### post-commit\n\nFirst install **sl** (Steam Locomotive) and then create a symlink.\n\nAfter committing, a steam locomotive will cross the terminal, trying to prevent you from pushing to early. **Spoiler:**\nThis won't always help!\n\n#### Universal\n\n```shell\nln -s \"$(readlink -m ./post-commit.sh)\" /CUSTOM/PATH/hooks/post-commit\n```\n\n#### Personal\n\n```shell\nln -s \"$(readlink -m ./post-commit.sh)\" ~/.gittemplates/hooks/post-commit\n```\n\n## Problems?\n\nFork! Fork it! Fork you! Fork me, right?\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr2-g2%2Fgithooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fr2-g2%2Fgithooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr2-g2%2Fgithooks/lists"}