Skip to content

Migrate from SVN to Git

Xiaoxiao Liu edited this page Nov 10, 2015 · 17 revisions

For the record, it takes 9 mins to checkout v3d_external, and 26 mins to check out vaa3d_tools from svn repos, on a decent linux box with wired internet.

Time to migrate to Git ! Ongoing....

Steps Taken: *svn2git (https://github.com/nirvdrum/svn2git#readme)

*identified large files (http://naleid.com/blog/2012/01/17/finding-and-purging-big-files-from-git-history) 247df80a278db0cdc7cabc6b885b0e2f30587bac 186494271 v3d_main/common_lib/src_packages/InsightToolkit-4.0.0.tar.gz af4789782604eb68b81d556718062542bfa47f68 81884985 v3d_main/common_lib/src_packages/opencv-2.4.5.tar.gz 628d8bce22160146777e61e35464cab01cc837a5 73472080 v3d_main/common_lib/src_packages/boost_1_57_0.tar.gz 90acfbfbf0cbb8914329c5970c32b5f90a939a74 50928274 v3d_main/common_lib/src_packages/boost_1_46_0.tar.gz e8a573bd6d2b3fa3d84195196723cea34158a30e 36383930 v3d_main/common_lib/src_packages/InsightToolkit-3.20.0.tar.gz 557cdad23111eff1dccece403bb3b55e89d02830 35850512 v3d_main/common_lib/src_packages/boost_1_38_0.tar.gz d9e3f9313546725cf452116c03b87a00144b2436 35360958 v3d_main/common_lib/src_packages/ITK_src_100515.zip bb5b6363b9b023d9b449e4fb3bb85527b7e366cb 15601822 v3d_main/common_lib/ffmpeg-2.5.2-win64.tgz

git filter-branch --prune-empty --index-filter 'git rm -rf --cached --ignore-unmatch v3d_main/common_lib/src_packages/InsightToolkit-4.0.0.tar.gz' --tag-name-filter cat -- --all

git filter-branch -f --prune-empty --index-filter 'git rm -rf --cached --ignore-unmatch v3d_main/common_lib/src_packages/opencv-2.4.5.tar.gz' --tag-name-filter cat -- --all

git filter-branch -f --prune-empty --index-filter 'git rm -rf --cached --ignore-unmatch v3d_main/common_lib/src_packages/InsightToolkit-3.20.0.tar.gz' --tag-name-filter cat -- --all

git filter-branch -f --prune-empty --index-filter 'git rm -rf --cached --ignore-unmatch v3d_main/common_lib/src_packages/ITK_src_100515.zip' --tag-name-filter cat -- --all

git filter-branch -f --prune-empty --index-filter 'git rm -rf --cached --ignore-unmatch v3d_main/common_lib/ffmpeg-2.5.2-win32.tgz' --tag-name-filter cat -- --all

Clone this wiki locally