mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 15:36:21 -04:00
9 lines
194 B
Bash
Executable file
9 lines
194 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
branch=$1
|
|
test -z $branch && echo "branch required." 1>&2 && exit 1
|
|
|
|
git push origin HEAD:refs/heads/$branch
|
|
git fetch origin
|
|
git checkout --track -b $branch origin/$branch
|