rwxrob-dot/git/.git-templates/hooks/pre-commit
Rob Muhlestein 2ea0289e9f Rebase
2022-02-09 02:29:05 -05:00

8 lines
245 B
Bash
Executable File

#!/bin/sh
# branch="$(git branch --show-current)"
# if test "${branch}" = "master" -o "${branch}" = "main"; then
# echo "Cowardly refusing to commit on ${branch} branch."
# echo "You can delete this pre-hook or do it right."
# exit 1
# fi