개발도구/소프트웨어 형상관리(SCM)

svn to github migration with history

노루아부지 2022. 2. 15. 16:39

SVN(Subversion)을 사용하다가 Git로 형상관리 도구를 변경해야 하는 상황이 되어 history를 포함해서 마이그레이션이 가능한지 찾아봤습니다.

GitHub로 마이그레이션 하는 방법은 다음과 같습니다.

  1. git install
  2. 다음 명령어를 실행하여 svn의 데이터 clone
    git svn clone <svn 경로>
    ex) git svn clone http://192.168.0.1/svn/test/trunk​
  3. GitHub Desktop에서 File > Add local repository... 메뉴 클릭
  4. clone 경로 지정
  5. history 탭을 클릭 후 history가 존재하는지 확인
  6. Repository > Push
  7. repository name 입력
  8. repository 접속 후 파일 존재 여부 확인
  9. history 존재 여부 확인

자세한 옵션은 아래 주소를 확인하시면 됩니다.

https://git-scm.com/docs/git-svn

 

Git - git-svn Documentation

For the sake of simplicity and interoperating with Subversion, it is recommended that all git svn users clone, fetch and dcommit directly from the SVN server, and avoid all git clone/pull/merge/push operations between Git repositories and branches. The rec

git-scm.com

 

[참고 사이트]

https://stackoverflow.com/questions/79165/how-do-i-migrate-an-svn-repository-with-history-to-a-new-git-repository

 

How do I migrate an SVN repository with history to a new Git repository?

I read the Git manual, FAQ, Git - SVN crash course, etc. and they all explain this and that, but nowhere can you find a simple instruction like: SVN repository in: svn://myserver/path/to/svn/repos...

stackoverflow.com

 

728x90
loading