美文网首页
svn迁移至git

svn迁移至git

作者: 文优 | 来源:发表于2016-12-12 16:52 被阅读0次

    command

    git svn clone -A users.txt --trunk=trunk/kraken-lib/kraken-lib-parent --branches=branches/*/kraken-lib/kraken-lib-parent --tags=tags/*/kraken-lib/kraken-lib-parent http://svn.develop.taobao.net/repos/kraken-lib/ 11  
    git remote add origin git@gitlab.alibaba-inc.com:mall-mobile/kraken-lib-parent.git  
    git push -u origin master  
    
    git svn clone -A users.txt --trunk=trunk/kraken-lib/kraken-monitor --branches=branches/*/kraken-lib/kraken-monitor --tags=tags/*/kraken-lib/kraken-monitor http://svn.develop.taobao.net/repos/kraken-lib/ 11  
    git remote add origin git@gitlab.alibaba-inc.com:mall-mobile/kraken-monitor.git  
    git push -u origin master  
    
    git svn clone -A users.txt --trunk=trunk/kraken --branches=branches/*/kraken --tags=tags/*/kraken http://svn.develop.taobao.net/repos/kraken/ 22  
    git remote add origin git@gitlab.alibaba-inc.com:mall-mobile/kraken.git  
    git push -u origin master
    

    users.txt

    wenyou.ly = 文优<wenyou.ly@taobao.com>
    admin.for.perth = admin.for.perth<wenyou.ly@taobao.com>
    svncenter = svncenter<wenyou.ly@taobao.com>
    

    查看用户

    svn log http://svn.develop.taobao.net/repos/kraken/ --xml | grep -p "^<author" | \sort -u | perl -pe 's/<author>(.*?)<\/author>/$1 = $1 \<$1\@example.com\>/' > users.txt
    

    http://pm.readthedocs.org/zh_CN/latest/vcs/git/subversion2git.html

    shell

    # 新建文件夹
    find default -type d -exec mkdir -p utf/{} \;
    # 字符集编码转换
    for i in `find tmallcollection -name *.java -type f` ; do iconv -c -f GBK -t UTF-8 $i > utf/$i; done
    

    相关文章

      网友评论

          本文标题:svn迁移至git

          本文链接:https://www.haomeiwen.com/subject/bggmmttx.html