概要 †
中央管理用のリモートリポジトリサーバーをDebianで構築します。
手順 †
- Gitをインストールします。
1
2
|
| apt-get install git-core
apt-get install git-daemon-run
|
- Gitユーザーを作成します。(以降「git」)
- /etc/sv/git-daemon/runを編集します。
1
2
3
4
5
6
| -
!
-
|
!
| exec 2>&1
echo 'git-daemon starting.'
exec git-daemon --verbose --base-path=/home/git --export-all --enable=receive-pack
|
- ユーザーをgitに切り替え、初期設定を行ないます。
1
2
3
4
5
6
7
8
9
10
11
12
13
| -
!
-
!
-
!
-
!
-
!
-
!
| login git
git config --global user.name "git@hogeServer"
git config --global user.email "[email protected]"
git config --global color.ui auto
git config --global core.pager "lv -c"
git config --list
|
検証時の環境 †
参考 †