#!/bin/bash BR=${2:-master} ( git has $1 2>/dev/null | grep -q $BR ) && echo Yes || echo No