用git-svn克隆多个SVN项目 [英] Clone multiple SVN projects with git-svn

查看:378
本文介绍了用git-svn克隆多个SVN项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个大的Java应用程序被分成多个项目。每个项目在Subversion存储库中都有自己的文件夹,如下所示:



AccountingCore




  • 主干

  • 分行

  • 标记


$ b 常见


  • 分行

  • 分行
  • >


WebCommon


  • 干线

  • 分行

  • 标签



等...



我想在本地开始使用 git-svn ,而不是颠覆。

这可能是一个愚蠢的问题,但是有没有办法立即在存储库中检出所有项目(包括分支和全部)而不是单独检查每个项目?



谢谢,
Tony

解决方案

如果你有一个shell,你可以在AccountingCore Common WebCommon中为DIR输入

;做mkdir $ DIR; cd $ DIR; git init; git svn init -s svn:// host / path / $ DIR; git svn fetch; cd ..;完成



也就是说,如果我没有犯错。


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

  • trunk
  • branches
  • tags

Common

  • trunk
  • branches
  • tags

WebCommon

  • trunk
  • branches
  • tags

etc...

I want to start using git-svn locally instead of subversion.

This may be a stupid question, but is there a way to checkout all the projects in the repository at once (including branches and all) instead checking out each project individually?

Thanks, Tony

解决方案

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.

这篇关于用git-svn克隆多个SVN项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆