Does git-svn handle moved files

Git does not explicitly track the copied or moved files, but it detects them, for example, with git log --follow . When using Git in SVN Repo and pushing my changes with git svn dcommit SVN recognize them as copied files?

+7
source share
2 answers

git-svn will correctly reference the file history if it can detect the link at the time of git svn dcommit . If the only thing you do is move the file, it will work as expected, and the SVN server will link file A to file B in its history.

However, if you also modify the file, then crush the two commits before pushing them to SVN, then git may incorrectly guess that the file has been renamed, and you will get the deleted file and the newly created file with no visible relationship in the SVN repository.

+7
source

You want to get an entry in SVN Log as follows:

  A /xxxx/xyz (from /xxxx/zzzz.xxx:5555) 

Yes, you understand that.

+1
source

All Articles