SVN迁移Git步骤及遇到的坑

1、创建用户映射文件 users.txt

        users文件内容:

                    <svn用户名> = git用户名<email>

                    eg:  android = android <android@163.com>

         代码创建

                    需要svn-migration-scripts.jar工具包支持,下载地址https://bitbucket.org/atlassian/svn-migration-scripts/downloads/

                    执行代码:java -jar svn-migration-scripts.jar authors svn地址 > users.txt

2、svn to git

    在users.txt同级目录新建放git的文件目录,如SvnToGit文件目录

    git svn clone svn地址 --authors-file=users.txt --no-metadata SvnToGit    耐心等待,全程保持网络畅通

遇到的坑:

Q:     ** not defined in users.txt file -------  将**加入users.txt

        eg.       Author: (no author) not defined in authors file

 A:      在users.txt中加入(no author) = No Author <no.author@mail.com>

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容