このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン 次のリビジョン 両方とも次のリビジョン | ||
git2:server [2020/06/05 06:47] y2sunlight [Gitプロトコルによる運用] |
git2:server [2020/06/16 15:16] y2sunlight [Smart HTTPプロトコルによる接続] |
||
---|---|---|---|
行 71: | 行 71: | ||
</ | </ | ||
- | ここで設定した内容は '' | + | ここで設定した内容は '' |
\\ | \\ | ||
行 327: | 行 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 | ||
行 413: | 行 413: | ||
例: | 例: | ||
< | < | ||
- | git clone http:// | + | git clone http:// |
- | git clone http// | + | git clone http// |
</ | </ | ||
行 453: | 行 453: | ||
< | < | ||
- | cd / | + | cd / |
- | git init --bare --shared ./ | + | git init --bare --shared ./ |
chown -R apache: | chown -R apache: | ||
行 464: | 行 464: | ||
< | < | ||
- | cd / | + | cd / |
htpasswd -c .htpasswd USER # 新しいユーザ(例: | htpasswd -c .htpasswd USER # 新しいユーザ(例: | ||
New password: | New password: | ||
行 475: | 行 475: | ||
git clone http:// | git clone http:// | ||
git clone git:// | git clone git:// | ||
+ | </ | ||
+ | |||
+ | {{fa> | ||
+ | |||
+ | < | ||
+ | cd / | ||
+ | rm -rf ./ | ||
</ | </ | ||
\\ | \\ | ||