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
# Current branch - Determine current git branch, store in $currentbranch, and exit if not on a branch | |
if ! currentbranch=$(git symbolic-ref --short -q HEAD) | |
then | |
echo We are not currently on a branch. | |
exit 1 | |
fi | |
# Uncommited Changes - Exit script if there uncommited changes | |
if ! git diff-index --quiet HEAD --; then | |
echo "There are uncommited changes on this repository." |