{"id":29090735,"url":"https://github.com/mohamedawnallah/generic-git-hooks","last_synced_at":"2026-04-28T10:37:10.799Z","repository":{"id":230739972,"uuid":"780050473","full_name":"mohamedawnallah/Generic-Git-Hooks","owner":"mohamedawnallah","description":"Generic Git Hooks are the git hooks I generally re-use in my day-to-day work that help me follow the contribution guidelines across many open source projects.","archived":false,"fork":false,"pushed_at":"2024-04-01T04:50:09.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-02T04:31:46.393Z","etag":null,"topics":["git","githooks"],"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/mohamedawnallah.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}},"created_at":"2024-03-31T15:04:12.000Z","updated_at":"2024-03-31T15:20:05.000Z","dependencies_parsed_at":"2024-03-31T16:24:26.771Z","dependency_job_id":"c9332bd3-ec7d-4b47-ab5b-4465c51cbff4","html_url":"https://github.com/mohamedawnallah/Generic-Git-Hooks","commit_stats":null,"previous_names":["mohamedawnallah/generic-git-hooks"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mohamedawnallah/Generic-Git-Hooks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohamedawnallah%2FGeneric-Git-Hooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohamedawnallah%2FGeneric-Git-Hooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohamedawnallah%2FGeneric-Git-Hooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohamedawnallah%2FGeneric-Git-Hooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mohamedawnallah","download_url":"https://codeload.github.com/mohamedawnallah/Generic-Git-Hooks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohamedawnallah%2FGeneric-Git-Hooks/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262376655,"owners_count":23301383,"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":["git","githooks"],"created_at":"2025-06-28T05:06:24.118Z","updated_at":"2026-04-28T10:37:05.759Z","avatar_url":"https://github.com/mohamedawnallah.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Generic Git Hooks\n\nThese Git hooks are designed to streamline the contribution process by enforcing various guidelines commonly found across open-source projects. By integrating these hooks into your workflow, you can ensure consistency and adherence to contribution standards, saving time and effort in the development process.\n\n## Features\n\n- **Commit-msg Hooks**: Enforce commit message conventions to maintain a clean and informative commit history.\n- **Post-checkout Hooks**: Trigger actions after a checkout has been completed, such as updating dependencies or resetting project state.\n- **Post-commit Hooks**: Execute tasks automatically after a commit has been made, such as generating documentation or running tests.\n\n## Installation\n\n1. Clone this repository to your local machine:\n\n    ```bash\n    git clone https://github.com/mohamedawnallah/generic-git-hooks.git\n    ```\n\n2. Navigate to the cloned repository directory:\n\n    ```bash\n    cd generic-git-hooks\n    ```\n\n3. Copy the hooks you wish to use to your project's `.git/hooks` directory:\n\n    ```bash\n    cp hooks/commit-msg /path/to/your/project/.git/hooks/\n    cp hooks/post-checkout /path/to/your/project/.git/hooks/\n    cp hooks/post-commit /path/to/your/project/.git/hooks/\n    ```\n\n4. Make the hooks executable:\n\n    ```bash\n    chmod +x /path/to/your/project/.git/hooks/commit-msg\n    chmod +x /path/to/your/project/.git/hooks/post-checkout\n    chmod +x /path/to/your/project/.git/hooks/post-commit\n    ```\n\n## Usage\n\nOnce installed, the hooks will automatically execute at their respective stages in the Git workflow. Any violations or issues detected by the hooks will prevent the corresponding action (commit or push) from proceeding until resolved.\n\nTo customize the behavior of the hooks, you can edit the scripts directly or modify them to suit your project's specific requirements.\n\n## Contributing\n\nContributions are welcome! If you have suggestions, improvements, or additional hooks to share, please feel free to open an issue or pull request on GitHub.\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohamedawnallah%2Fgeneric-git-hooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmohamedawnallah%2Fgeneric-git-hooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohamedawnallah%2Fgeneric-git-hooks/lists"}