{"id":16761018,"url":"https://github.com/bmeurer/git-hooks","last_synced_at":"2025-03-16T09:23:58.613Z","repository":{"id":141109454,"uuid":"1814978","full_name":"bmeurer/git-hooks","owner":"bmeurer","description":"Git Hooks provides a simple mechanism to manage hooks for several Git repositories in a unified and simple way. It allows you to install hook scripts in a central location and use them for your Git repositories.","archived":false,"fork":false,"pushed_at":"2011-08-05T18:04:06.000Z","size":115,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-22T21:32:11.843Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://benediktmeurer.de/git-hooks","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bmeurer.png","metadata":{"files":{"readme":"README","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}},"created_at":"2011-05-28T18:11:33.000Z","updated_at":"2024-11-28T16:28:48.000Z","dependencies_parsed_at":"2023-03-13T10:38:47.144Z","dependency_job_id":null,"html_url":"https://github.com/bmeurer/git-hooks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmeurer%2Fgit-hooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmeurer%2Fgit-hooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmeurer%2Fgit-hooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmeurer%2Fgit-hooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bmeurer","download_url":"https://codeload.github.com/bmeurer/git-hooks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243848648,"owners_count":20357599,"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":[],"created_at":"2024-10-13T04:25:14.564Z","updated_at":"2025-03-16T09:23:58.568Z","avatar_url":"https://github.com/bmeurer.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n                      git-hooks - Generic Git hooks\n\n\n                    http://benediktmeurer.de/git-hooks\n\n\nGit Hooks provides a simple mechanism to manage hooks for several Git\nrepositories in a unified and simple way. It allows you to install hook\nscripts in a central location and use them for your Git repositories.\n\n\nInstallation\n\nYou need CMake and GCC in order to build and install git-hooks. You will\nalso need to have Git and Perl installed for the hooks to work properly.\nTo build git-hooks run\n\n\t$ cmake /path/to/git-hooks\n\t$ make\n\nin a new directory (preferably, tho you may also run it from the source\ndirectory). Then, use\n\n\t$ make install\n\nto install git-hooks. This will install git-hooks to /usr/local. You can\nuse ccmake to change the installation prefix. Below, we will assume that\nyou installed git-hooks to /usr/local.\n\n\nRepository setup\n\nTo setup a repository using git-hooks, just use the repository template\nthat ships with git-hooks.\n\n\t$ mkdir myrepo.git\n\t$ cd myrepo.git\n\t$ git --bare init --template=/usr/local/share/git-hooks/template ...\n\nThis will setup the new repository myrepo.git with git-hooks. Check the\nsample config file that will be created for myrepo.git.\n\n\nRepository migration\n\nTo migrate an existing repository to use git-hooks, you should first backup\nyour existing hook scripts. Then replace the hooks with the ones from\n/usr/local/share/git-hooks/template/hooks. Afterwards, you should migrate\nyour previous hook scripts to global hook scripts used by git-hooks.\n\n\nConfiguration\n\nThe git-hooks package includes several useful hooks, which can be configured\nto your needs using git config settings in your repository (or even global\nsettings from /etc/gitconfig). The /usr/local/share/git-hooks/template/config\nfile provides a sample configuration file.\n\nPlease see the hook scripts in /usr/local/share/git-hooks/*.d/ for the\nvarious supported config settings.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbmeurer%2Fgit-hooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbmeurer%2Fgit-hooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbmeurer%2Fgit-hooks/lists"}