このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
|
git2:server [2020/06/04 23:01] y2sunlight [リポジトリの設定] |
git2:server [2020/06/16 15:20] (現在) y2sunlight [Gitサーバーの運用] |
||
|---|---|---|---|
| 行 29: | 行 29: | ||
| * Gitサーバーの構築 - Gitデーモン/ | * Gitサーバーの構築 - Gitデーモン/ | ||
| * [[git2: | * [[git2: | ||
| - | * [[git: | + | * [[git2: |
| リンク | リンク | ||
| 行 71: | 行 71: | ||
| </ | </ | ||
| - | ここで設定した内容は '' | + | ここで設定した内容は '' |
| \\ | \\ | ||
| 行 119: | 行 119: | ||
| <code sh> | <code sh> | ||
| # これらのコマンドは、リポジトリディレクトリ(例:/ | # これらのコマンドは、リポジトリディレクトリ(例:/ | ||
| - | git config daemon.uploadpack false # upload-pack を無効にする。 | ||
| - | git config daemon.uploadarch true # uploadarch を有効にする。 | ||
| git config daemon.receivepack true # receivepack を有効にする。 | git config daemon.receivepack true # receivepack を有効にする。 | ||
| </ | </ | ||
| 行 329: | 行 327: | ||
| {{fa> | {{fa> | ||
| <code int git.conf> | <code int git.conf> | ||
| - | # | + | # 環境設定 |
| SetEnv GIT_PROJECT_ROOT /var/git | SetEnv GIT_PROJECT_ROOT /var/git | ||
| SetEnv GIT_HTTP_EXPORT_ALL | SetEnv GIT_HTTP_EXPORT_ALL | ||
| 行 390: | 行 388: | ||
| Adding password for user y2sunlight | Adding password for user y2sunlight | ||
| </ | </ | ||
| + | |||
| + | > | ||
| '' | '' | ||
| 行 415: | 行 415: | ||
| 例: | 例: | ||
| < | < | ||
| - | git clone http:// | + | git clone http:// |
| - | git clone http// | + | git clone http// |
| </ | </ | ||
| 行 455: | 行 455: | ||
| < | < | ||
| - | cd / | + | cd / |
| - | git init --bare --shared ./ | + | git init --bare --shared ./ |
| chown -R apache: | chown -R apache: | ||
| 行 466: | 行 466: | ||
| < | < | ||
| - | cd / | + | cd / |
| - | htpasswd | + | htpasswd .htpasswd USER # 新しいユーザ(例: |
| - | New password: | + | New password: |
| - | Re-type new password: | + | Re-type new password: |
| </ | </ | ||
| 行 477: | 行 477: | ||
| git clone http:// | git clone http:// | ||
| git clone git:// | git clone git:// | ||
| + | </ | ||
| + | |||
| + | {{fa> | ||
| + | |||
| + | < | ||
| + | cd / | ||
| + | rm -rf ./ | ||
| </ | </ | ||
| \\ | \\ | ||