svn迁移到git

项目需要把代码从svn迁移到git,只迁移一个分支不迁移其他。
参考
https://stackoverflow.com/questions/79165/how-do-i-migrate-an-svn-repository-with-history-to-a-new-git-repository
https://blog.csdn.net/u010039418/article/details/86138101
https://www.jianshu.com/p/8594d426d493

svn log -q | awk -F '|' '/^r/ {gsub(/ /, "", $2); sub(" $", "", $2); print $2" = "$2" <"$2">"}' | sort -u > users.txt

git svn clone --no-metadata --authors-file=users.txt svn://172.16.xxx/java_js_open/branches/open-location-server open-platform

你可能感兴趣的:(svn迁移到git)