https://github.com/ccoveille/githook-helper
Pure shell git hook helper
https://github.com/ccoveille/githook-helper
githook githooks githooks-plugin
Last synced: 4 months ago
JSON representation
Pure shell git hook helper
- Host: GitHub
- URL: https://github.com/ccoveille/githook-helper
- Owner: ccoVeille
- License: mit
- Created: 2022-03-30T11:41:08.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-30T14:51:28.000Z (about 3 years ago)
- Last Synced: 2025-02-24T13:43:00.546Z (4 months ago)
- Topics: githook, githooks, githooks-plugin
- Language: Shell
- Homepage:
- Size: 2.93 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Naive and native githook implementation in shell
## Inspired by gist
Code has been copied from
adapted a bit, then modification were made according to shellcheck recommendation## Requirements
- sh
## How to use it
- Copy this file in your .git/hooks folder
- create symbolic links such as```shell
ln -s ../multiple-git-hooks.sh .git/hooks/pre-commit
mkdir .git/hooks/pre-commit.d/
```then place any hook you want to install in .git/hooks/pre-commit.d/ folder
the code will be run
You can do the same for any other hooks: post-commit, prepare-commit-msg,
pre-push ...## Disclaimer
This project was a way for me to code something in pure shell without any dependencies
There are a lot of better projects than this one, such as
Please note this project use pre-commit to validate code