From c9ad53d4ab12cdf742a5f42d1e1bb6cf8946dd1c Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Fri, 23 Apr 2021 11:39:38 -0400 Subject: add git-spinoff and git-publish --- git-spinoff | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 git-spinoff (limited to 'git-spinoff') 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 -- cgit v1.2.3