diff options
| author | yyamashita <yyamashita@hetzner.yyamashita.com> | 2026-05-17 17:06:48 +0900 |
|---|---|---|
| committer | yyamashita <yyamashita@hetzner.yyamashita.com> | 2026-05-17 17:06:48 +0900 |
| commit | dd7142e08cd66656514c7468ce12be72674900a5 (patch) | |
| tree | 2f76902b3dbe30f898c14b9a03006a7c51c5a4cd /git/README.md | |
| parent | 230537b994d29710d1c33c2eef35487573dc550e (diff) | |
Add README.md to each directory
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'git/README.md')
| -rw-r--r-- | git/README.md | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/git/README.md b/git/README.md new file mode 100644 index 0000000..6bb2d30 --- /dev/null +++ b/git/README.md @@ -0,0 +1,16 @@ +# git + +サーバー上のベアリポジトリとフックを管理する。変更は `install.sh` を手動実行して反映する。 + +| ファイル | 内容 | +|---|---| +| `repos.txt` | `name:work-tree` 形式でリポジトリを定義 | +| `hooks/<repo>/post-receive` | 各リポジトリの post-receive フック | +| `install.sh` | ベアリポジトリ作成・フック展開・SSH 鍵適用 | +| `server-setup.sh` | 初回のみ: Docker インストールと hetzner-infra ブートストラップ | + +```bash +# 変更を反映する +git push origin master +ssh root@localhost 'bash /app/infra/git/install.sh' +``` |
