본문 바로가기

Back-end/형상관리

[ Git ] SVN에서 Git 이관

 

 

 

 

🔖 SVN에서 Git으로 이관 

 

SVN에서 Git으로 History 포함하여 이관 작업 

 

 

PC에 git이 설치 되어있지 않다면 먼저 설치 진행

https://git-scm.com/downloads

 

Git - Downloads

Downloads macOS Windows Linux/Unix Older releases are available and the Git source repository is on GitHub. GUI Clients Git comes with built-in GUI tools (git-gui, gitk), but there are several third-party tools for users looking for a platform-specific exp

git-scm.com

 

 

 

이관 후 workspaces 를 잡을 예정이기 때문에 

삭제하기 편한 곳에 다 작업할 폴더 생성 후 cmd 창 열고, 

 

해당 폴더로 이동 

cd [작업 폴더]

 

 

 

SVN 저장소 클론 진행

git svn clone [SVN 저장소] --no-metadata --prefix=svn/

 

SVN 계정 확인 후 클론 진행 됨

 

 

 

완료 후 프로젝트 폴더로 이동

cd [프로젝트 폴더]

 

 

 

추가적인 SVN 브랜치 및 히스토리 가져오기

git svn fetch

 

 

 

이관할 원격 Git 저장소 추가

git remote add origin [git http]

 

 

 

 

연결된 원격 저장소 확인

git remote -v

 

 

 

 

프로젝트와 히스토리를 Git으로 Push

git push -u origin --all

 

Git 계정 확인 후 push 진행 됨

 

 

 

태그도 Git으로 Push

git push -u origin --tags

 

 

 

 

Git 확인시 history 포함하여 이관이 완료 된 것을 볼 수 있다 

작업 폴더는 삭제해도 무관