git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* split up a repository
@ 2010-03-02  0:12 Kovacs, Levente
  2010-03-02  0:36 ` Chris Packham
  2010-03-02 10:40 ` Sverre Rabbelier
  0 siblings, 2 replies; 8+ messages in thread
From: Kovacs, Levente @ 2010-03-02  0:12 UTC (permalink / raw)
  To: git

Hi all,


Ok, I *WAS* an SVN user, so forgive my ignorance. I have successfully
migrated from SVN to git. However, I had only one repository under my
SVN server, which is not a good approach with git.

http://logonex.eu/git/?p=svn.git;a=summary

Now I have one git repository, which I'd like to split up to several others. Does it possible with git? If it is, how?

How can I split up a single repo to several others? It would be nice to
keep the history.

Thank you for your help in advance.

Levente

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: split up a repository
  2010-03-02  0:12 split up a repository Kovacs, Levente
@ 2010-03-02  0:36 ` Chris Packham
  2010-03-02 10:40 ` Sverre Rabbelier
  1 sibling, 0 replies; 8+ messages in thread
From: Chris Packham @ 2010-03-02  0:36 UTC (permalink / raw)
  To: Kovacs, Levente; +Cc: git

Hi,

On Mon, Mar 1, 2010 at 4:12 PM, Kovacs, Levente <leventelist@gmail.com> wrote:
> Hi all,
>
>
> Ok, I *WAS* an SVN user, so forgive my ignorance. I have successfully
> migrated from SVN to git. However, I had only one repository under my
> SVN server, which is not a good approach with git.
>
> http://logonex.eu/git/?p=svn.git;a=summary
>
> Now I have one git repository, which I'd like to split up to several others. Does it possible with git? If it is, how?
>
> How can I split up a single repo to several others? It would be nice to
> keep the history.
>
> Thank you for your help in advance.
>
> Levente
> --

'git filter-branch' should do what you need. Have a read of this [1]
recent discussion and the docs for filter-branch [2].

[1] http://thread.gmane.org/gmane.comp.version-control.git/138382
[2] http://www.kernel.org/pub/software/scm/git/docs/v1.7.0.1/git-filter-branch.html

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: split up a repository
  2010-03-02  0:12 split up a repository Kovacs, Levente
  2010-03-02  0:36 ` Chris Packham
@ 2010-03-02 10:40 ` Sverre Rabbelier
  2010-03-02 23:21   ` Levente Kovacs
  1 sibling, 1 reply; 8+ messages in thread
From: Sverre Rabbelier @ 2010-03-02 10:40 UTC (permalink / raw)
  To: Kovacs, Levente, Avery Pennarun; +Cc: git

Heya,

On Tue, Mar 2, 2010 at 01:12, Kovacs, Levente <leventelist@gmail.com> wrote:
> How can I split up a single repo to several others? It would be nice to
> keep the history.

Sounds like a job for.... subtree man! Avery (cc-ed) has written a
program 'git subtree' that lets you split off subtrees from a git
repository (and optionally merge them back later on). I reckon that's
what you want, yes?

-- 
Cheers,

Sverre Rabbelier

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: split up a repository
  2010-03-02 23:21   ` Levente Kovacs
@ 2010-03-02 23:19     ` Sverre Rabbelier
  2010-03-03  1:40     ` Avery Pennarun
  1 sibling, 0 replies; 8+ messages in thread
From: Sverre Rabbelier @ 2010-03-02 23:19 UTC (permalink / raw)
  To: Levente Kovacs; +Cc: Avery Pennarun, git

Heya,

On Wed, Mar 3, 2010 at 00:21, Levente Kovacs <leventelist@gmail.com> wrote:
> Ok. Really newbie question here. Just before I start to mess up my
> repositories.

PROTIP: Back up your repository before messing with it ;).

> I've cloned the git-subtree, and the install script would put
> the script into /usr/lib/git-core. Is there any way to install the script
> somewhere under /usr/local ?

I'll leave git subtree specific questions to Avery :).

-- 
Cheers,

Sverre Rabbelier

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: split up a repository
  2010-03-02 10:40 ` Sverre Rabbelier
@ 2010-03-02 23:21   ` Levente Kovacs
  2010-03-02 23:19     ` Sverre Rabbelier
  2010-03-03  1:40     ` Avery Pennarun
  0 siblings, 2 replies; 8+ messages in thread
From: Levente Kovacs @ 2010-03-02 23:21 UTC (permalink / raw)
  To: Avery Pennarun, Sverre Rabbelier; +Cc: git

On Tue, 2 Mar 2010 11:40:41 +0100
Sverre Rabbelier <srabbelier@gmail.com> wrote:

> Sounds like a job for.... subtree man!

Yes, it seems!

Ok. Really newbie question here. Just before I start to mess up my
repositories. I've cloned the git-subtree, and the install script would put
the script into /usr/lib/git-core. Is there any way to install the script
somewhere under /usr/local ?

Thanks,

-- 
Levente Kovacs
http://logonex.eu

-- 
Levente Kovacs
http://logonex.eu

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: split up a repository
  2010-03-02 23:21   ` Levente Kovacs
  2010-03-02 23:19     ` Sverre Rabbelier
@ 2010-03-03  1:40     ` Avery Pennarun
  2010-03-03 14:04       ` Bill Lear
  1 sibling, 1 reply; 8+ messages in thread
From: Avery Pennarun @ 2010-03-03  1:40 UTC (permalink / raw)
  To: Levente Kovacs; +Cc: Sverre Rabbelier, git

On Tue, Mar 2, 2010 at 6:21 PM, Levente Kovacs <leventelist@gmail.com> wrote:
> On Tue, 2 Mar 2010 11:40:41 +0100
> Ok. Really newbie question here. Just before I start to mess up my
> repositories. I've cloned the git-subtree, and the install script would put
> the script into /usr/lib/git-core. Is there any way to install the script
> somewhere under /usr/local ?

The actual function of git-subtree is one single file.  You can just
copy it to wherever you like.  Personally, I add the git-subtree
source directory to my PATH from .bashrc... but I guess I'm special
because I also change my version of git-subtree a lot :)

Make sure to run 'make test' first so you know it's working on your computer.

And I'll second Sverre's suggestion to *always* back up your
repository before doing weird stuff (although git-subtree is designed
to refuse to overwrite existing branches, and nobody has ever reported
it damaging anything).

Have fun,

Avery

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: split up a repository
  2010-03-03  1:40     ` Avery Pennarun
@ 2010-03-03 14:04       ` Bill Lear
  2010-03-03 19:19         ` Avery Pennarun
  0 siblings, 1 reply; 8+ messages in thread
From: Bill Lear @ 2010-03-03 14:04 UTC (permalink / raw)
  To: Avery Pennarun; +Cc: Levente Kovacs, Sverre Rabbelier, git

On Tuesday, March 2, 2010 at 20:40:57 (-0500) Avery Pennarun writes:
>On Tue, Mar 2, 2010 at 6:21 PM, Levente Kovacs <leventelist@gmail.com> wrote:
>> On Tue, 2 Mar 2010 11:40:41 +0100
>> Ok. Really newbie question here. Just before I start to mess up my
>> repositories. I've cloned the git-subtree, and the install script would put
>> the script into /usr/lib/git-core. Is there any way to install the script
>> somewhere under /usr/local ?
>
>The actual function of git-subtree is one single file....

Does git-subtree support branching of the "main" repository and
sub-trees in coordinated (one step) fashion?


Bill

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: split up a repository
  2010-03-03 14:04       ` Bill Lear
@ 2010-03-03 19:19         ` Avery Pennarun
  0 siblings, 0 replies; 8+ messages in thread
From: Avery Pennarun @ 2010-03-03 19:19 UTC (permalink / raw)
  To: Bill Lear; +Cc: Levente Kovacs, Sverre Rabbelier, git

On Wed, Mar 3, 2010 at 9:04 AM, Bill Lear <rael@zopyra.com> wrote:
> Does git-subtree support branching of the "main" repository and
> sub-trees in coordinated (one step) fashion?

Yes.

Avery

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-03-03 19:19 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-02  0:12 split up a repository Kovacs, Levente
2010-03-02  0:36 ` Chris Packham
2010-03-02 10:40 ` Sverre Rabbelier
2010-03-02 23:21   ` Levente Kovacs
2010-03-02 23:19     ` Sverre Rabbelier
2010-03-03  1:40     ` Avery Pennarun
2010-03-03 14:04       ` Bill Lear
2010-03-03 19:19         ` Avery Pennarun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).