Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

migrate svn to git with svn external

I am new to git, I am now want to leave subversion svn and use git. Is there any method can move svn to git with all its svn externals with tortoisegit. I have tried the function git clone but it doesn't work. Thanks.

like image 822
newstartgirls Avatar asked Nov 27 '13 11:11

newstartgirls


People also ask

Can you convert SVN to Git?

The high-level workflow for migrating from SVN to Git is as follows: Prepare a migration environment. Convert the source SVN repository to a local Git repository. (Optional) Synchronize the local Git repository with any changes from SVN repository while developers continue using SVN.

Which migration is actually recommended for migration from SVN to Git?

Migrate from SVN to Git with History and Branches txt file to match the syntax you need for your Git author information. Now that you have your list of authors ready, you can run the import using git svn and specify the authors-transform. txt . Copy the authors-transform.

How do I clone a SVN repository?

# Clone a repo with standard SVN directory layout (like git clone): git svn clone http://svn.example.com/project --stdlayout --prefix svn/ # Or, if the repo uses a non-standard directory layout: git svn clone http://svn.example.com/project -T tr -b branch -t tag --prefix svn/ # View all branches and tags you have ...

What are SVN externals?

What are externals definitions? Externals definitions map a local directory to the URL of a versioned resource. The svn:externals property can be set on any versioned directory and its value is a multi-line table of subdirectories and absolute repository URLs.


1 Answers

I used the recipe in http://patrickbougie.com/2013/03/18/convert-svn-to-git-repository/ recently and it did the trick.

In general, though, I prefer changing the build to refer to external dependencies, rather than include the source code at the right point. If you're using Maven, then Maven modules are designed for just that.

like image 128
Stephen Harrison Avatar answered Sep 28 '22 15:09

Stephen Harrison