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?
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With