summaryrefslogtreecommitdiff
path: root/git/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'git/README.md')
-rw-r--r--git/README.md16
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'
+```