Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 6 lines (5 sloc) 225 Bytes
BRANCH_NAME=$1
MASTER_BRANCH="master"
[ -e .git/refs/remotes/origin/master ] || MASTER_BRANCH="mainline"
git update-ref refs/heads/$MASTER_BRANCH refs/remotes/origin/$MASTER_BRANCH
git checkout -b $BRANCH_NAME $MASTER_BRANCH