[katello-devel] Codebase Split-up

Eric D Helms ericdhelms at gmail.com
Sat Apr 6 19:09:25 UTC 2013


For reference, this is related to a story placed on our current sprint and
viewable here -
https://trello.com/card/split-up-upstream-git-repositories/511bd7357c52d1c61c00510e/64


On Sat, Apr 6, 2013 at 6:26 AM, Ewoud Kohl van Wijngaarden <
ewoud+katello at kohlvanwijngaarden.nl> wrote:

> On Fri, Apr 05, 2013 at 02:02:23PM -0400, Jay Dobies wrote:
> > One suggestion. When we did it, two new repos were created and stuff
> > picked out of the initial repo and copied over. That ended up losing
> > all of the git history and making annotate show Mike's name for
> > every file.
> >
> > Instead, try adding each repo as a new remote and pushing a full
> > copy into each, then pruning off what you don't need. That should
> > maintain the history and annotate.
>
> Git already has a great tool for this and github has a very easy help
> page for it.
>
>
> https://help.github.com/articles/splitting-a-subpath-out-into-a-new-repository
>
> This will give you a very clean history for just the CLI.
>
> git clone git://github.com/Katello/katello.git katello-cli
> cd katello-cli
> git filter-branch --prune-empty --subdirectory-filter cli master
>
> Then you'd push it to https://github.com/katello/katello-cli for
> something similar.
>
> For katello itself (the original repo) I'd recommend just a git rm -r so
> you'll retain your history because otherwise you will force everone to
> rebase, pull requests will require lots of effort etc.
>
> _______________________________________________
> katello-devel mailing list
> katello-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/katello-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/katello-devel/attachments/20130406/1873312b/attachment.htm>


More information about the katello-devel mailing list