2011-08-31 4 views
4

최근에 SVN 저장소를 Git (다음 http://www.jonmaddox.com/2008/03/05/cleanly-migrate-your-subversion-repository-to-a-git-repository/)로 옮겼지만 약간의 제한이있었습니다. 가져 오는 파일 중 일부는 SVN 복사하지만 git log를 수행하면이 파일들 중 하나에 대해서만 복사 한 후에 히스토리가 제공됩니다.svn -> git에서 복사/이름 바꾸기 전의 업데이트 기록 유지하기

SVN 복사/이름 바꾸기를 따르는 개정 기록이 포함 된 SVN에서 Git으로 가져 오는 방법이 있습니까?

답변

1

힘내는 사본에 대한 정보를 명시 적으로 저장하지 않으므로 가져 오는 방법과 상관없이 원하는 경우 로그 명령을 수행 할 때 탐지하도록 지시해야합니다. git-log 매뉴얼 페이지에서 :

-C[<n>] 
--find-copies[=<n>] 
Detect copies as well as renames. See also --find-copies-harder. If n is specified, 
it has the same meaning as for -M<n>. 

--find-copies-harder 
For performance reasons, by default, -C option finds copies only if the original file 
of the copy was modified in the same changeset. This flag makes the command inspect 
unmodified files as candidates for the source of copy. This is a very expensive 
operation for large projects, so use it with caution. Giving more than one -C option 
has the same effect. 
+0

로그 팁 주셔서 감사합니다. 슬프게도 트릭을 수행하지 않은 것 같습니다. 아마도 복사 한 위치가 Git 저장소에 포함되지 않았기 때문일 것입니다. – shauns

+0

예, 불행히도 당신이 추측 할 때 사본은 git 저장소에 있어야합니다. –