Search code examples
gitsvngit-svngit-rewrite-history

Does git-svn renaming preserve SVN history?


I need to rename a file via Git while using git-svn. Will the history of the file in SVN be preserved after dcommit?

I know it will be if I'm using just Git or just SVN but I'm not sure if there is some history-preserving forwarding in between.

Currently cannot try it myself.


Solution

  • Yes, as long as Git detects it as move or copy, in my experience it was also transported as move or copy to SVN, which means history was preserved.