[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [git] Partial clone possible?
|
I've done this recently with another open source project in the process
of migrating to git.
To clone just a portion of your repository from SVN into a seperate git
repository you can do something like the following (assuming you have
git svn installed).
git svn clone
http://www.ebayopensource.org/svn/turmeric/soa-platform/trunk/runtime
That will clone the runtime platform into a local git repository called
runtime.
You can then do a git remote add, and add a remote git repository
(preferably one that is empty), and push the cloned repo to it:
git push <yourexternalrepo> master
That will push the master branch from your cloned SVN repo to the remote
repo. The remote repo will no nothing about your SVN repository.
You may find the following link on Selectively Importing SVN Branches as
well.
http://ivanz.com/2009/01/15/selective-import-of-svn-branches-into-a-gitgit-svn-repository/
Dave
On 06/06/2011 08:21 AM, h3llghost@xxxxxx wrote:
Wed, 1 Jun 2011 16:54:36 -0500
On Wed, Jun 1, 2011 at 4:41 PM,<h3llghost@xxxxxx> wrote:
Hi,
how can I take a single directory with history from svn to git?
At the moment we (20+ people) use SVN with a lot of directories. Some
directories can be single projects with stand alone repositories.
Further more there are directories which contains code fragments, which
can be used for projects.
What eclipse.org project is this?
I think you mean which kind of language do you?
It is Java, C++ and so on ...
You can use svn2git...
http://wiki.eclipse.org/Git/Migrating_to_Git#Using_svn2git_on_a_remote_server
Thanks for the advice, but it means that the whole svn repo becomes a git repo?
Once you have something available, I recommend putting it on github
temporarily to play with.
What would be the easiest way to split the svn repo?
What do you mean by this?
I have a structure like following:
svn
|
|--project abc
|
|--project def
|
|--utils
And my intention is to split all directories in single git repos, because submodules doesn't work in eGit yet and there is no other possible way to checkout only subfolders from git repo.
Cheers,
Chris
_______________________________________________
git mailing list
git@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/git