Migrating complex SVN repository to GIT -


i have svn repository more 100 projects , want migrate git now. how svn repository looks like:

customer_1/prj_1 (trunk, branches, tags) customer_1/prj_2 (trunk, branches, tags) customer_1/prj_n (trunk, branches, tags) ... customer_2/prj_1 (trunk, branches, tags) customer_2/prj_2 (trunk, branches, tags) customer_2/prj_n (trunk, branches, tags) ... customer_n/prj_1 (trunk, branches, tags) customer_n/prj_2 (trunk, branches, tags) customer_n/prj_n (trunk, branches, tags) 

via svn can checkout:

  1. the entire repository containing customers , projects
  2. all projects of single customer
  3. a specific customer's project

i still need these 3 ways of access using git, branching , tagging single customer projects , not entire repository. in svn different customer projects have different stable releases being stored in "tags" directory each project. need differentiate between customer project releases in git well.

i have converted svn repository single git repository (using svn-git), (i think) git not allow clone single folders subversion, needs structured using submodules or subtrees.

is necessary create single git repository every single customer project (which take lot of time) or common way achieve asking for?

if need tag individual customer projects, need 1 git repository per project. tags (and branches) in git global repository, there no way tag subdirectory.

to using git-svn, run

git svn clone -s http://svn-repo/customer_1/prj_1  git svn clone -s http://svn-repo/customer_1/prj_2 

etc.

this may indeed take while, you'll have live that. of course script calls git-svn.

as browsing repositories:

if have multiple git repos, can check them out subfolders in 1 folder. if want browse them on server, without cloning/checking out, need install git repository browser. there many available - there's list in git wiki: interfaces, frontends, , tools.


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -