상세 컨텐츠

본문 제목

Gitolite gitolite.conf 설명

Study/GIT

by 휀스 2012. 11. 2. 11:25

본문


Gitolite  를 설치하고 gitolite home folder 에 repositories/gitolite-admin/conf/gitolite.conf 파일을 수정하게 된다.


이때 gitolite.conf 파일의 내용을 수정하고 나면 실제 repository 가 저장되는 folder 에 수정한 내용의 folder 가 생성된다.


예를 들어 보자면...


repo gitolite-admin

    RW+     =   gitolite

    RW+     =   jason


repo testing

    RW+     =   @all


repo mytest

    RW+     = jason


이라고 mytest 에 대한 권한을 생성하고 

git commit -a -m "comment"
git push

하고나면

jason@server:/home/git-repo/repositories$ ll
total 32
drwxrwxr-x  8 git-repo git-repo 4096 Nov  2 10:15 ./
drwxr-xr-x 10 git-repo git-repo 4096 Nov  2 10:15 ../
drwxrwxr-x  8 git-repo git-repo 4096 Nov  2 10:14 gitolite-admin.git/
drwx------  7 git-repo git-repo 4096 Oct 31 09:00 mytest.git/
drwxrwxr-x  7 git-repo git-repo 4096 Oct 31 08:33 testing.git/

push 와 동시에 위 같이 폴더가 생성된다.


만들어 줘야 하는줄 알았는데 그냥 만들어지네... gitolite 잼나네...




관련글 더보기