개발/Server
Synology Git Server
내가지니
2021. 11. 15. 17:44
1. git Server 저장소 추가
ssh user@host 접속
콘솔 접속 후
sudo -i #Root 권한 획득
cd /volumn1 #volumnx로 이동
mkdir git #저장소로 사용할 디렉터리 생성. /git/test
cd git
mkdir test
cd test
git init --bare #저장소 초기화
cd ..
chown -R gitUser@users test
2.clone 테스트
git clone ssh://[Git users]@[hostname]/[Git repository path]
ex) git clone ssh://[Git users]@[hostname]/volume1/git/test