You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rwxrob-dot/scripts/branch

6 lines
95 B
Bash

#!/bin/sh
if [ -z "$1" ]; then
exec git branch --show-current
fi
exec git checkout -b "$@"