Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming > #2153

Re: Split a git repository?

From Rui Maciel <rui.maciel@gmail.com>
Newsgroups comp.programming
Subject Re: Split a git repository?
Date 2012-09-05 12:24 +0100
Organization Aioe.org NNTP Server
Message-ID <k27con$51m$1@speranza.aioe.org> (permalink)
References <k2201o$2n1$1@speranza.aioe.org> <0.3b41f11daf4c894d927a.20120903173438BST.87392zysip.fsf@bsb.me.uk>

Show all headers | View raw


Ben Bacarisse wrote:

> My first though is
> 
> git rm docs/*
> git commit -a -m "docs/* now in their own repository"
> cd docs
> git init
> git add *
> 
> Obviously you might want the repository for docs somewhere else, in
> which case you can use --git-dir=...
> 
> However, I can see some problems.  I don't know what happens when people
> try to merge changes on removed files.  Presumably something sane, but I
> don't know what.

Thanks for the help.  I was hoping for a magic trick that could to pull this 
off, such as an arcane command that could convert a subdirectory into a 
submodule, and in the process it would extract and remove all the history 
from the original repository and set up everything as required.  Alas, no 
such luck.


Thanks for the help,
Rui Maciel

Back to comp.programming | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Split a git repository? Rui Maciel <rui.maciel@gmail.com> - 2012-09-03 11:16 +0100
  Re: Split a git repository? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-09-03 17:34 +0100
    Re: Split a git repository? Rui Maciel <rui.maciel@gmail.com> - 2012-09-05 12:24 +0100
      Re: Split a git repository? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-09-05 13:30 +0100
  Re: Split a git repository? Robert Wessel <robertwessel2@yahoo.com> - 2012-09-05 22:07 -0500
  Re: Split a git repository? Ian Collins <ian-news@hotmail.com> - 2012-09-06 19:46 +1200

csiph-web