SIP: Fix incoming re-invite
[lcr.git] / checkout-branch.sh
1 #!/bin/bash
2
3 #checks out the given branch
4
5 if [ "$1" = "" ] ; then
6         echo "please provide one of the branch names:"
7         git branch -a
8         exit
9 fi
10
11 git checkout -b $1 origin/$1
12 git config branch.$1.remote origin
13 git config branch.$1.merge refs/heads/$1
14