Tracking a large project that has switched from svn to git -


I track a project that has recently been taken from SVN to GIT. I've got the most recent svn code and want to start using the code from git. Is there a way to do this, which does not include downloading a large codebase on a slow connection? Essentially, I would like to say "Start here (old SVN code) and just switch from git".

SVN & amp; Git can look similar because they are both SCM tools, but under the hood, they have been implemented very differently, that is,

Just start with fresh and GIT clone it, even for big projects like the Linux kernel, the speed is very fast on cloning.

You can also use the - Depth option to speed things up:

- Depth & lt; Depth & gt;
Make a shallow clone with history shortening the specified number of revisions, there are several limitations in a shallow store (you can not clone or bring it with it ), But if you are interested in the recent history of a large project with only long history, and want to send it in the form of a patched form

source: < / P>

Here is an example that is the most recent of the repository Checks for version:

  git clone git: // Source.winehq.org/git/wine.git ~ / wine-git --depth 1  

Source:

You can use later - Depth = & lt; Depth & gt;

Deprecate the history of with depth option :

shallow repository by GIT clone --depth = & lt; Depth & gt; Option

by the specified number of commits Source:

Perhaps, if you have put a large number (or perhaps -1) for depth so that the entire history of the repository If you are drawn, you should have all the functionality of a common repository, such as the ability to clone or bring it, or the ability to move forward or from it.

If not, you can normally clone it separately in place (perhaps when you have a fast connection) and use your commot to move from shallow store to new and

Matt


Comments