Saving the history of changes before copying / renaming in svn & # 8594; git

I recently moved the SVN repository to Git (after http://www.jonmaddox.com/2008/03/05/cleanly-migrate-your-subversion-repository-to-a-git-repository/ ), but found a bit of restriction - some of the imported files have a long history before the SVN copy, but running Git log --follow in any of these files gives only the history after the copy.

Is there a way to import from SVN to Git that includes the change history that follows SVN Copy / Rename?

+4
source share
1 answer

Git does not store copy information explicitly, so you do not need to specify how you import it to detect it when you do the log command if you want. On the git-log man page:

 -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. 
+1
source

All Articles