Created
May 14, 2020 03:07
-
-
Save Slowhand0309/6dd9fb237e46516ed5c4e660ba7d7701 to your computer and use it in GitHub Desktop.
[シェル内でgit branch存在チェック] #Script
This file contains hidden or 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
if [ `git branch --list $branch_name` ]; then | |
echo "Branch name $branch_name already exists." | |
else | |
echo "Branch named $branch_name does not exist" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment