diff options
author | Adam T. Carpenter <atc@53hor.net> | 2022-02-26 17:04:50 -0500 |
---|---|---|
committer | Adam T. Carpenter <atc@53hor.net> | 2022-02-26 17:04:50 -0500 |
commit | 8b9bf007b803268506108c6a6e898f5017aa7622 (patch) | |
tree | b719f344d80c549719604196d6b0ac59a472ebb9 /git-create | |
parent | a38b3f626fa140fc56b1c579a594f0a7d445a390 (diff) | |
download | scripts-8b9bf007b803268506108c6a6e898f5017aa7622.tar.xz scripts-8b9bf007b803268506108c6a6e898f5017aa7622.zip |
feat: very basic git-create
Diffstat (limited to 'git-create')
-rwxr-xr-x | git-create | 7 |
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" |