태그된 제품에 대해 수수료를 받습니다.
728x90
반응형
0. homebrew를 통해 Subversion설치
2023.11.11 - [MAC] - 맥북 터미널 사용해서 소프트웨어 설치하는 방법 [Homebrew 홈브류]
설치 명령어
brew install subversion
1. svn 저장소로 사용할 폴더 생성
mkdir /Users/계정이름/Desktop/SVN
꼭 바탕화면이 아니어도 됨, 경로 사이에 띄어쓰기는 들어가야 한다.
2. 저장소 파일을 불러올 프로젝트 폴더 생성
svnadmin create /Users/계정이름/Desktop/SVN/프로젝트명
3. Svn 사용자 계정 생성
cd /Users/계정이름/Desktop/SVN/프로젝트명/conf/
vi passwd
[users]
# harry = harryssecret
# sally = sallyssecret
새사용자아이디 = 비밀번호 (위에 두개는 예시이며 앞에 #은 없어야 함)
vi passwd에 진입해
I = insert 입력모드를 사용해서 내용을 수정하면 된다
esc 빠져나오기
:wq 저장 후 종료
4. 환경설정 수정하기
vi svnserve.conf
마찬가지로 I = insert 입력모드를 사용해서 내용 수정 후
esc 빠져나오기
:wq 저장 후 종료
아래 3줄을 수정하면 되는데
# anon-access = read
# auth-access = write
# password-db = passwd
띄어쓰기와 #을 지워주면 된다.
anon-access = none
auth-access = write
password-db = passwd
5. 체크아웃 (새로 만든 프로젝트 폴더에 svn 저장소 설정하기)
svnserve -d -r /Users/계정이름/Desktop/SVN
svn checkout --username 아이디 --password 비번 svn://내ip/프로젝트명
앞으로 svn링크는 svn://내ip/프로젝트명 구조로 사용하면 된다
예를 들면 svn://192.168.0.0/ProjectA
2023.11.11 - [MAC] - 맥에서 ip 확인하는 방법 2가지
6. Svn이 비어있을때 첫 커밋 trunk
환경 변수 설정
svn mkdir svn://localhost/trunk
svn mkdir svn://내ip/프로젝트명/trunk
svn import project svn://내ip/프로젝트명/trunk
7. 커밋하고 확인하기
커밋할 때 명령어 대신 GUI를 사용하려면
맥은 SnailSVNLite(무료) 윈도우는 TortoiseSVN(무료)를 사용하면 된다.
svn commit -m “메시지”
svn propset --revprop -r 1 svn:log “메시지”
참고로 유니티 프로젝트를 이렇게 사용하면
라이브러리 파일 등 불필요한 파일이 같이 커밋에 잡히는데
아래 링크를 통해 커밋에 나오지 않게 수정할 수 있다
2023.11.25 - [Unity] - 유니티 기타 파일 커밋 제외하기 TortoiseSVN / SnailSVN Lite - Ignore
728x90
반응형
태그된 제품에 대해 수수료를 받습니다.