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:
- the entire repository containing customers , projects
- all projects of single customer
- 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
Post a Comment