force fail commit on master
current_branch=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,')
if [ "$current_branch" == "master" ]
then
echo "Should not commit on master branch. Use 'git commit -n' to override"
exit 1
fiPreviousdifferent between two dots and threeNextgit finish helper script delete current branch and update master
Last updated