tj.git-extras/bin/git-create-branch
2012-01-25 11:52:08 -05:00

10 lines
195 B
Bash
Executable file

#!/bin/sh
branch=$1
test -z $branch && echo "branch required." 1>&2 && exit 1
git push origin origin:refs/heads/$branch
git fetch origin
git checkout --track -b $branch origin/$branch
git pull