Clone multiple SVN projects with git-svn


Clone multiple SVN projects with git-svn



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




Programmatic git status

1:



Problems using git diff to create file list for deploy
If you have a shell, you could enter.
How can I use two SVN projects and corresponding git-svn branches with a single working directory?
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.
How to retrieve a single file from specific revision in Git?
That is, if I made no mistakes..
Can I move the .git directory for a repo to it's parent directory?


Git : How to get a snapshot of a git repository


How do you squash commits into one patch with git format-patch?

2:



git push rejected
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 ... 



3:


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..



88 out of 100 based on 58 user ratings 958 reviews