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