#!/bin/sh
branch=$(git rev-parse --abbrev-ref HEAD)
if [ "$branch" = "main" ]; then
  echo "✋ You are trying to commit directly to main. Switch to a feature branch."
  exit 1
fi
