Open wada811 opened 5 years ago
Git のブランチが存在するかチェックしたい。
Git のブランチ名のリストを grep する。
grep
BRANCH="develop" test -n "$(git branch -a --format="%(refname:short)" | grep -e ^$BRANCH$)"
Why
Git のブランチが存在するかチェックしたい。
What
Git のブランチ名のリストを
grep
する。How
Ref