diff options
Diffstat (limited to 'git-spinoff')
-rw-r--r-- | git-spinoff | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/git-spinoff b/git-spinoff new file mode 100644 index 0000000..c6bf7ac --- /dev/null +++ b/git-spinoff @@ -0,0 +1,5 @@ +#!/usr/bin/env bash +echo "creating spinoff branch $1" +git branch $1 HEAD +git reset --hard origin +git checkout $1 |