====== SVN ====== * description : Svn 관련 내용 기술 * author : 주레피 * email : dhan@repia.com * lastupdate : 2020-05-19 [[wiki:repia:svn|SVN 저장소 생성하기(rstorage)]] \\ ===== Linux 사용법 ===== export (Release 버전 가져오기) [dev@developer ~] svn export svn://svn저장소/RSA4_Package/RSA-Linux-4.5 RSA-Linux-4.5 [dev@developer ~] svn export svn://svn저장소/RSA4_Package/RSA-Linux-4.5 RSA [dev@developer ~] svn export /SVN/RSA4_Package RSA4-Linux-4.5 > 마지막 매개변수에서 디렉토리를 지정할 수 있다. 없으면 RSA-Linux-4.5 > Local Repository에서도 잘 됨. ^^ \\ checkout (Repository 가져오기) [dev@developer ~] svn co svn://svn저장소/RSA4_Package/RSA-Linux-4.5 RSA-Linux-4.5 [dev@developer ~] svn co svn://svn저장소/RSA4_Package/RSA-Linux-4.5 RSA > checkout로 해도 된다. > 마지막 매개변수에서 디렉토리를 지정할 수 있다. 없으면 RSA-Linux-4.5 \\ add (Repository에 추가 예약^^) [dev@developer ~] svn add ./* \\ delete (Repository에 삭제 예약^^) [dev@developer ~] svn del ./* > 파일이나 폴더 상관 없다. > 수정은 예약하지 않고 바로 commit \\ commit (Repository에 추가) [dev@developer ~] svn commit -m '' > 예약된 내용이 실제 적용됨 > 커밋시에는 반드시 메시지를 입력해야 한다. \\ svn update [dev@developer ~] svn update > checkout한 곳에서 하자. export한 곳에서는 안된다. \\ [[https://tdoodle.tistory.com/entry/SVN-%EB%AC%B4%EC%8B%9C%ED%95%A0-%ED%8C%8C%EC%9D%BC%ED%8F%B4%EB%8D%94-%EC%84%A4%EC%A0%95|SVN 무시할 파일/폴더 설정]] \\ \\ Find files that are not under version control [dev@developer ~] svn status |grep ^\?|awk '{print $2}' ===== Tip ===== ===== Troubleshooting ===== CentOS6 checkout 에러 Store password unencrypted (yes/no) 에서 yes를 눌렸는데도 무한 반복되는 현상 $> vi ${USER_HOME}/.subversion/servers store-passwords = yes store-plaintext-passwords = yes > 주석 해제 및 value를 yes로 수정한 후 저장, 다시 checkout하면 됨 [[https://sanghaklee.tistory.com/43|[SVN] svn checkout 에러 Store password unencrypted (yes/no)]] \\ ===== Ref ===== [[https://ascarion.tistory.com/33|Tortoise SVN Client 사용법]] \\ {{tag>주레피 svn}}