Clone multiple SVN projects with git-svn

后端 未结 3 1463
醉酒成梦
醉酒成梦 2021-01-05 07:55

I have a large Java app that is split up into multiple projects. Each project has its own folder in a Subversion repository like so:

AccountingCore

  • tr
相关标签:
3条回答
  • 2021-01-05 08:33

    Yes. just checkout at the root path. If your repo is hosted here:

    svn://host/path/AccountingCore svn://host/path/Common svn://host/path/WebCommon

    Then do your git svn command on svn://host/path.

    0 讨论(0)
  • 2021-01-05 08:40

    Just to improve on earlier answer, instead of

    for DIR in AccountingCore Common WebCommon; do ...
    

    do

    DIRS=`svn ls svn://host/path`; for DIR in $DIRS; do ...
    
    0 讨论(0)
  • 2021-01-05 08:44

    If you have a shell, you could enter

    for DIR in AccountingCore Common WebCommon; do mkdir $DIR; cd $DIR; git init; git svn init -s svn://host/path/$DIR; git svn fetch; cd ..; done

    That is, if I made no mistakes.

    0 讨论(0)
提交回复
热议问题