Skip to content

Instantly share code, notes, and snippets.

View caspre24's full-sized avatar

Carsten Sprung caspre24

View GitHub Profile
@caspre24
caspre24 / git-hooks.sh
Created June 25, 2021 11:57 — forked from MrSwed/git-hooks.sh
Enable or Disable git hooks
#!/usr/bin/env bash
# Enable or disable git hooks
gitRoot=$(git root)
gitHooks=".git/hooks"
echo "git Hooks $gitRoot/$gitHooks"
option="${1}"
case ${option} in