svn迁移到gitlab

svn log svn://172.16.15.103/project/WEB_SITE/ -q | awk -F '|' '/^r/ {sub("^ ", "", $2); sub(" $", "", $2); print $2"="$2" <"$2"@gmail.com>"}' | sort -u > ./svn2git.txt

#编辑svn2git.txt对应管

git svn clone svn://172.16.15.103/project/WEB_SITE/ --no-metadata --authors-file="svn2git.txt" WEB_SITE

cd WEB_SITE

git config --global user.name "Administrator"

git config --global user.email "admin@example.com"

git remote add WEB_SITE http://172.16.15.121:9080/chenyun/WEB_SITE.git

git push -u WEB_SITE --all

原文地址:https://www.cnblogs.com/xiaoleimagic/p/13214491.html