summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2020-01-06 13:07:37 +0100
committerMarc Vertes <mvertes@free.fr>2020-01-06 13:07:37 +0100
commit2447052de6d6b2d400b2880c8f9b61f4a5422283 (patch)
treee3e31cef61dd12dba71128b0a60891e838872ff7
parent564ab24a0e2a0a1e545771f8fe01dc5767e65a23 (diff)
parente520c17d913b0d9edfe20ebf65d28baf81518542 (diff)
Merge branch 'master' of bip.im:dotfiles
-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"