I migrated my SVN repository successfully with Tags into Git using git svn-clone
. However, git svn-clone
does not migrate svn:externals
. Hence, I decided to modify branch tree using git filter-branch
.
For svn:externals
, first I created a separate Git repository for each svn:externals and then I tried using the following, but it didn't work.
$ git filter-branch --tree-filter "git submodule add [email protected]:myAcc/mySubmodule.git mySubmodule" HEAD
Rewrite a013a219e4294d4ee66b323cf1db9c170d90130a (1/4)fatal: working tree '.' already exists.
Clone of '[email protected]:myAcc/mySubmodule.git' into submodule path 'common' failed
tree filter failed: git submodule add [email protected]:myAcc/mySubmodule.git mySubmodule
rm: cannot remove `c:/myRepo/.git-rewrite/revs': Permission denied
rm: cannot remove directory `c:/myRepo/.git-rewrite': Directory not empty
Any idea how to accomplish this? Thanks a lot in advance.