Skip to content

Instantly share code, notes, and snippets.

@Slowhand0309
Created May 14, 2020 03:07
Show Gist options
  • Save Slowhand0309/6dd9fb237e46516ed5c4e660ba7d7701 to your computer and use it in GitHub Desktop.
Save Slowhand0309/6dd9fb237e46516ed5c4e660ba7d7701 to your computer and use it in GitHub Desktop.
[シェル内でgit branch存在チェック] #Script
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