git svn - clone repo with all externals

后端 未结 3 1970
傲寒
傲寒 2021-02-08 02:12

I want to use git to clone a svn repository, but unfortunately, where svn checkout gets the repo with all externals, git svn clone only gets the reposi

3条回答
  •  时光取名叫无心
    2021-02-08 02:37

    I post solution here that works in my case

    git svn show-externals | \
      awk '/^\// { print "git svn clone "$3" ."$1" "$2":HEAD"  }' | \
      bash
    

提交回复
热议问题