Utility/NAS

[펌] Git Repository 생성

blueasa 2016. 8. 11. 23:01

★. Git Repository 생성 :http://evoue.tistory.com/40
    1. nas접속.
        ssh root@nasip

    2. Repository 디렉토리 생성
        cd /var/services/homes/git
        mkdir -p repo
        cd repo
        mkdir test.git
        git init --bare

       ※ 설명
            1. repo/test.git 디렉토리 생성.
            2. git레포지터리 초기화 : 빈 git영역을 생성한다.

    3. git사용자에게 권한 부여.
        chown -R git:users ./repo



[출처] http://softm.tistory.com/entry/Git-Repository-%EC%83%9D%EC%84%B1

반응형