git 3

[Git] Local branch / Remote branch 생성 또는 삭제 하기

계속 명령어를 잊어서, 블로그에 박제.. ※ 브랜치명 : feature_1 Branch 생성 Local branch $ git branch feature_1 위 명령어를 입력하게 되면 feature_1 branch는 생성되지만 브랜치 위치가 변경되지는 않음 $ git checkout feature_1 위 명령어를 입력해야 feature_1 브랜치로 이동 아니면! $ git checkout -b feature_1 위 명령어처럼 입력해서 한방에 브랜치도 만들고, 현재 위치도 바꿀 수 있음 Remote branch local branch를 만든 후, $ git push origin feature_1 위 명령어를 입력하면 remote에도 feature_1 브랜치가 생성 local branch-remote bra..

기타 2020.06.05

SVN을 Git으로 옮기기

변경할 SVN 주소 = svn://${IP 주소}/${svn 저장소} ex) svn://127.0.0.1/svnserver (1) SVN 소스를 git으로 clone! git svn clone ${SVN 저장소 주소} --no-metadata * --no-metadata : Subversion의 메타데이터 저장하지 않겠다는 뜻 아이디와 비밀번호가 존재한다면 --username ${user_id} 추가하고 비밀번호 입력 ex) git svn clone svn://127.0.0.1/svnserver --no-metadata --username (2) clone 받은 'svnserver' 폴더 내 .git/refs/remotes/origin/tags가 존재한다면! cp -rf .git/refs/remotes/..

기타 2019.09.25