DevJourney · code I wrote while learning
setup-hooks
169 B#!/usr/bin/env bash
set -euo pipefail
root=$(git rev-parse --show-toplevel)
git -C "$root" config core.hooksPath .githooks
printf 'Installed repository commit hooks.\n'DevJourney · code I wrote while learning
#!/usr/bin/env bash
set -euo pipefail
root=$(git rev-parse --show-toplevel)
git -C "$root" config core.hooksPath .githooks
printf 'Installed repository commit hooks.\n'