Skip to content

Instantly share code, notes, and snippets.

View code2exe's full-sized avatar
💭
iDesign, iEngineer, iArchitect, iAutomate, iSecure, iDeploy, iManage Solutions

Henry code2exe

💭
iDesign, iEngineer, iArchitect, iAutomate, iSecure, iDeploy, iManage Solutions
View GitHub Profile
#!/bin/sh
current_branch=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,')
if [ 'master' = ${current_branch} ]
then
echo "ERROR: Not allowed to push to master."
exit 1;
else
exit 0;