dotfiles/dot_local/bin/executable_xxbranch

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