diff options
-rwxr-xr-x | git-publish | 7 | ||||
-rw-r--r-- | git-spinoff | 5 |
2 files changed, 12 insertions, 0 deletions
diff --git a/git-publish b/git-publish new file mode 100755 index 0000000..29cb246 --- /dev/null +++ b/git-publish @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +# send a specific commit on the current branch to the remote +branch=$(git rev-parse --abbrev-ref HEAD) +remote=$1 +commit=$2 +git push $remote $commit:$branch + 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 |