{"id":15621925,"url":"https://github.com/fredericrous/git-templates","last_synced_at":"2026-04-21T05:32:17.592Z","repository":{"id":149342111,"uuid":"384097119","full_name":"fredericrous/git-templates","owner":"fredericrous","description":"opinionated git templates with its collection of hooks","archived":false,"fork":false,"pushed_at":"2024-03-12T14:39:44.000Z","size":62,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T15:47:32.023Z","etag":null,"topics":["cicd","command-line","devops","git","hooks","shell","terminal"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fredericrous.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":"2021-07-08T11:10:33.000Z","updated_at":"2024-03-12T14:39:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"6ce81dea-81ba-4022-bf8f-b897d54b5cdc","html_url":"https://github.com/fredericrous/git-templates","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fredericrous/git-templates","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredericrous%2Fgit-templates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredericrous%2Fgit-templates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredericrous%2Fgit-templates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredericrous%2Fgit-templates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fredericrous","download_url":"https://codeload.github.com/fredericrous/git-templates/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredericrous%2Fgit-templates/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263140589,"owners_count":23419911,"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":["cicd","command-line","devops","git","hooks","shell","terminal"],"created_at":"2024-10-03T09:52:19.228Z","updated_at":"2026-04-21T05:32:12.561Z","avatar_url":"https://github.com/fredericrous.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Git Templates with hooks\n\nGit Starter Template with opinionated hooks to help you create beautiful commits with high quality standards..and emojis ✨\n\n\u003cimg src=\"https://user-images.githubusercontent.com/702227/125003867-1b012f00-e050-11eb-8641-748ef806c639.png\" width=\"800\"\u003e\n\n*If there is an issue with a hook, please open an issue and consult the section [Opt Out](https://github.com/fredericrous/git-templates/wiki/Opt-Out) for a workaround.*\n\n## The workflow\n\nFirst, `commit`. A nice template [message](https://github.com/fredericrous/git-templates/blob/main/message) appears to help you write a meaningful commit description that passes the requirements.\nThe message saved, [validators](https://github.com/fredericrous/git-templates/wiki/Hooks-implemented) run in parallel. If there is an issue, the commit is aborted\nReady to push? once `git push` is started, the tests runs for the module you updated, branch name is checked. The branch is pushed. Bravo\n\nThe wiki explore in details [this workflow](https://github.com/fredericrous/git-templates/wiki/Coding-Flow)\n\nThe wiki also lists all the [implemented hooks](https://github.com/fredericrous/git-templates/wiki/Hooks-implemented)\n\n## Setup\n\nClone the repository to a convenient place:\n\n```sh\nmkdir ~/.config/git\ncd ~/.config/git\ngit clone https://github.com/fredericrous/git-templates.git\nchmod +x templates/hooks/*\n```\n\nSetup your gitconfig\n\n```sh\ngit config --global init.templatedir ~/.config/git/git-templates/templates\ngit config --global commit.template ~/.config/git/git-templates/message\n```\n\nCopy the hooks to existing repositories\n\n```sh\ncd \u003cfolder-of-your-repo\u003e\ngit init\n```\n\n## Update\n\nUpdate the local clone to the latest version\n\n```sh\ncd ~/.config/git/git-templates/templates\ngit pull\n```\n\nUpdate the target repository\n\n```sh\nrm $(git rev-parse --git-dir)/hooks/*\ngit init\n```\n\n## Requirements\n\n- Git 2.22+\n- ZSH\n- NodeJS 11.7+\n- [ripgrep](https://github.com/BurntSushi/ripgrep/)\n\n## Wiki\n\n- [Coding Flow](https://github.com/fredericrous/git-templates/wiki/Coding-Flow) - an explanation of where the hooks fit in your git \"flow\"\n- [Commit Prefix](https://github.com/fredericrous/git-templates/wiki/Commit-Prefix) - list of prefix your commit summaries should contain\n- [Hooks Implemented](https://github.com/fredericrous/git-templates/wiki/Hooks-implemented) - all the hooks that are triggered when you execute a git command\n- [Ideas of hooks to implement](https://github.com/fredericrous/git-templates/wiki/Ideas-of-hooks-to-implement) - a list of ideas, not a roadmap\n- [Opt Out](https://github.com/fredericrous/git-templates/wiki/Opt-Out) - bypass a check, a hook or uninstall it\n- [Similar Projects](https://github.com/fredericrous/git-templates/wiki/Similar-projects)\n\n## Contribute\n\nBasically if a script is simple implement it in shell script. If the logic is complicated, use javascript or any proper language to implement it. Javascript is nice because nowadays a lot of devs have nodejs installed on their machine.\n\nThere's a makefile, open it, see the different tasks, basically:\n\n- `make test` runs the tests\n- `make` is an alias to `make test`\n- `make install` copies the hooks from this repo to both .git/ and ~/.config/git/\n\nTo run only one test, use `make test RUN=\u003cpart of the name of the test\u003e`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffredericrous%2Fgit-templates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffredericrous%2Fgit-templates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffredericrous%2Fgit-templates/lists"}