11 lines
171 B
Bash
11 lines
171 B
Bash
#!/bin/sh
|
|
if [ $# -eq 1 ]; then
|
|
branch=$1
|
|
git fetch upstream master
|
|
git checkout upstream/master
|
|
git checkout -b "$branch"
|
|
else
|
|
echo "Please specify new branch."
|
|
fi
|
|
|