Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I import from SVN to Git without connecting to a remote server? [duplicate]

Tags:

git

svn

git-svn

Possible Duplicate:
How to git-svn clone the last n revisions from a Subversion repository?

I am trying to move my WordPress Plugins which are hosted in the massive WordPress Plugins repo to Git.

I tired using git-svn and it is taking too long (more than 4-5 hours for a single Plugin) and I have close to 20 Plugins to migrate.

I have the checked out SVN repo on my machine. Is there any way by which we can import the SVN repo into Git by just using the history information stored in the .svn folders without connecting to the SVN server?

like image 271
Sudar Avatar asked Dec 29 '12 16:12

Sudar


People also ask

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

When moving to Git from another version control system like Subversion (SVN), we generally recommend that you perform a "tip migration", which migrates just the latest version of the repository contents, without including history.

Can you use git and SVN together?

git-svn is a specialized tool for Git users to interact with Git repositories. It works by providing a Git frontend to an SVN backend. With git-svn, you use Git commands on the local repository, so it's just like using normal Git. However, behind the scenes, the relevant SVN commands are sent to the server.

What is git SVN clone?

The git svn clone command transforms the trunk, branches, and tags in your SVN repository into a new Git repository. Depending on the structure of your SVN repo, the command needs to be configured differently.


1 Answers

You don't have the SVN repo on your machine. You have a working copy.

Unlike Git, SVN doesn't download the entire repository, with the whole history, when checking out a working copy. It just downloads the latest versions of the files.

So no, it's impossible to get the history of an SVN project from a working copy.

like image 189
JB Nizet Avatar answered Oct 08 '22 22:10

JB Nizet