geek_stuff/server & linux
GIT 이전
!kKo
2012. 8. 2. 17:14
GIT public repository 이전
apt-get intall git git-core git-daemon
/etc/service/git-daemon 의 내용을 편집
#!/bin/sh
exec 2>&1
echo 'git-daemon starting.'
exec chpst -ugitdaemon \
"$(git --exec-path)"/git-daemon --verbose --reuseaddr \
--base-path=/repository/git/public --export-all --syslog --detach
레포지토리의 path를 --base-path 이후에 적어준다.
이후 기존 repository를 통째로 들고와서 --base-path 에 명시한 디렉토리에 복사.
끝~