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/bash | |
# Use the current branch as the source | |
SOURCE_BRANCH=`git rev-parse --abbrev-ref HEAD` | |
TARGET_BRANCH=${1:-master} | |
if [ "$SOURCE_BRANCH" = "" ]; then | |
# Something went wrong, but git probably already said what, just exit. | |
exit 1; | |
fi |