summaryrefslogtreecommitdiff
path: root/git-create
diff options
context:
space:
mode:
Diffstat (limited to 'git-create')
-rwxr-xr-xgit-create7
1 files changed, 7 insertions, 0 deletions
diff --git a/git-create b/git-create
new file mode 100755
index 0000000..dec4575
--- /dev/null
+++ b/git-create
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+REPO_NAME=$1
+[ -z "$REPO_NAME" ] && exit 1
+ssh git@53hor.net git init --bare --initial-branch=master "repos/$REPO_NAME.git"
+vim "scp://git@53hor.net//zroot/git/$REPO_NAME.git/description"
+git clone "git@53hor.net:repos/$REPO_NAME.git"