Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- changedBranch=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,')
- if [ $changedBranch == "master" ]; then
- echo "You are not allowed commit changes in this branch"
- exit 1
- fi
Advertisement