summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs7
1 files changed, 5 insertions, 2 deletions
diff --git a/docs b/docs
index 96a0785..5799c91 100644
--- a/docs
+++ b/docs
@@ -39,14 +39,17 @@ SSH keys:
39Create repo: 39Create repo:
40 git init --bare /git/myrepo 40 git init --bare /git/myrepo
41 41
42Git config (one-time):
43 git config --global user.name "hc"
44 git config --global user.email "hc@a.nub.ninja"
45
42Init and push local repo: 46Init and push local repo:
43 REPO=myrepo TARGET=git HOST=root@git2.noml.ch \ 47 REPO=myrepo TARGET=git HOST=root@git2.noml.ch \
44 && git config --global init.defaultBranch main \ 48 && git config --global init.defaultBranch main \
45 && git config --global user.name "hc" \
46 && git config --global user.email "hc@a.nub.ninja" \
47 && git init \ 49 && git init \
48 && ssh "$HOST" "set -e; git config --global init.defaultBranch main; git init --bare /$TARGET/$REPO" \ 50 && ssh "$HOST" "set -e; git config --global init.defaultBranch main; git init --bare /$TARGET/$REPO" \
49 && (git remote remove origin_$TARGET 2>/dev/null; git remote add origin_$TARGET "$HOST:/$TARGET/$REPO") \ 51 && (git remote remove origin_$TARGET 2>/dev/null; git remote add origin_$TARGET "$HOST:/$TARGET/$REPO") \
52 && git add -A && git commit -m "initial commit" \
50 && git push origin_$TARGET --all 53 && git push origin_$TARGET --all
51 54
52Restart: 55Restart: