arcana-in-action / etc /branch-name-check.sh
dexter2389's picture
Restructure project and use 'uv'
558414b
raw
history blame contribute delete
264 Bytes
BRANCH=$(git rev-parse --abbrev-ref HEAD)
if [[ $BRANCH =~ (master|main|develop) ]]; then
echo "You are on branch $BRANCH. Are you sure you want to commit to this branch?"
echo "If so, commit with -n to bypass this pre-commit hook."
exit 1
fi
exit 0