2007-06-01 13:13:57 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#checks out the given branch
|
|
|
|
|
|
|
|
if [ "$1" = "" ] ; then
|
|
|
|
echo "please provide one of the branch names:"
|
|
|
|
git branch -a
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
2007-06-15 13:15:35 +00:00
|
|
|
git-checkout -b $1 origin/$1
|
2007-06-01 13:13:57 +00:00
|
|
|
git-config branch.$1.remote origin
|
|
|
|
git-config branch.$1.merge refs/heads/$1
|