diff options
| author | Your Name <you@example.com> | 2026-02-07 20:14:19 +0800 |
|---|---|---|
| committer | Your Name <you@example.com> | 2026-02-07 20:14:19 +0800 |
| commit | b0572c958427ae6ad75109752e9741aab31ad65a (patch) | |
| tree | a1c5c31c6256a7b528aa6d394dc960bc8c5b6199 /docs | |
| parent | 99f687d0b5f8522b7bf0d73329e9b3b354941000 (diff) | |
updated for cleanliness
Diffstat (limited to 'docs')
| -rw-r--r-- | docs | 7 |
1 files changed, 5 insertions, 2 deletions
| @@ -39,14 +39,17 @@ SSH keys: | |||
| 39 | Create repo: | 39 | Create repo: |
| 40 | git init --bare /git/myrepo | 40 | git init --bare /git/myrepo |
| 41 | 41 | ||
| 42 | Git config (one-time): | ||
| 43 | git config --global user.name "hc" | ||
| 44 | git config --global user.email "hc@a.nub.ninja" | ||
| 45 | |||
| 42 | Init and push local repo: | 46 | Init 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 | ||
| 52 | Restart: | 55 | Restart: |
