标签:usr tla report oba checkout fine server fail clone
svn to git1.yum install -y ruby git git-svn(配置epel源)
2.gen install svn2git
3.svn2git http://10.6.60.40/svn/XXXX/SourceCode --notrunk --authors /root/users.txt --branches=06platform --branches=06platform/inttest --notag
#如果在分支下还有子目录需要作为分支,使用--branches参数指定path(--branches=06platform/inttest)
4.处理多余分支(git branch -d/-D branch)
5.处理目录(处理目录后需要 git commit、git add、git commit)
6.git remote add origin git@gitlab.xxxx.com:CoreProjectNew/business/frontend.git
7.git push origin --all
迁移准备:映射用户文件
1.git svn clone http://10.6.60.40/svn/XXXXSourceCode --authors-file=/root/author.txt --branches=26prpins prpins
2.git checkout -b inttest inttest(处理远程分支为本地分支)
3.git branch -d/-D branch(处理多余分支)
4.处理目录(处理目录后需要 git commit、git add、git commit)
5.git remote add origin git@gitlab.xxxx.com:CoreProjectNew/business/frontend.git
6.git push origin --all
http://10.6.60.40/svn/XXXX/SourceCode #svn仓库地址
--authors-file #映射用户文件
--branches #分支
prpins #项目dir name
1.cd project/
2.git svn fetch
1.W: Ignoring error from SVN, path probably does not exist: (160013): Filesystem has no item: File not found: revision 100, path ‘/SourceCode/25zyicloan‘
2.RA layer request failed: REPORT of ‘/svn/XXXX/!svn/me‘: Could not read chunk size: connection was closed by server (http://10.6.60.40) at /usr
3.Author: xx not defined in users.txt file
https://help.github.com/articles/source-code-migration-tools/ (github help) 这里详细说明了标准库和非标准库迁移
标签:usr tla report oba checkout fine server fail clone
原文地址:http://blog.51cto.com/674564591/2164060