You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
current_branch=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,')
if [ $protected_branch = $current_branch ]
then
printf "${RED}\nYou're trying to commit directly to master, but that's not allowed.\nPlease use the fork-and-branch workflow and submit a pull request with your changes.\n\n${NC}"