summaryrefslogtreecommitdiff
path: root/bin/git-bip
diff options
context:
space:
mode:
Diffstat (limited to 'bin/git-bip')
-rwxr-xr-xbin/git-bip9
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/git-bip b/bin/git-bip
new file mode 100755
index 0000000..1f38fec
--- /dev/null
+++ b/bin/git-bip
@@ -0,0 +1,9 @@
+#!/bin/sh -e
+
+case $1 in
+(-h|--help) echo "Usage: git-bip repo [desc] # create a git repo on bip"; exit ;;
+esac
+
+ssh git@bip.im git init --bare "${1%.git}.git"
+
+[ "$2" ] && ssh git@bip.im "echo \"$2\" > ${1%.git}.git/description"