Created
October 26, 2014 13:42
-
-
Save MartyLake/8e54064eed6fc2cd01c8 to your computer and use it in GitHub Desktop.
git tools
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Automaticaly push every commit but not branch | |
BRANCH_NAME=$(git branch | grep '*' | sed 's/* //') | |
if [ $BRANCH_NAME != '(no branch)' ] && [ $BRANCH_NAME != 'master' ] | |
then | |
# your regularly scheduled hook | |
exec git push | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment