#!/bin/bash

branches=`git branch | grep -i $1`
branches=${branches//\*/}

select branch in $branches;
do
git checkout $branch
exit
done

