<div dir="ltr">For reference, this is related to a story placed on our current sprint and viewable here - <a href="https://trello.com/card/split-up-upstream-git-repositories/511bd7357c52d1c61c00510e/64">https://trello.com/card/split-up-upstream-git-repositories/511bd7357c52d1c61c00510e/64</a></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Apr 6, 2013 at 6:26 AM, Ewoud Kohl van Wijngaarden <span dir="ltr"><<a href="mailto:ewoud+katello@kohlvanwijngaarden.nl" target="_blank">ewoud+katello@kohlvanwijngaarden.nl</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Fri, Apr 05, 2013 at 02:02:23PM -0400, Jay Dobies wrote:<br>
> One suggestion. When we did it, two new repos were created and stuff<br>
> picked out of the initial repo and copied over. That ended up losing<br>
> all of the git history and making annotate show Mike's name for<br>
> every file.<br>
><br>
> Instead, try adding each repo as a new remote and pushing a full<br>
> copy into each, then pruning off what you don't need. That should<br>
> maintain the history and annotate.<br>
<br>
</div>Git already has a great tool for this and github has a very easy help<br>
page for it.<br>
<br>
<a href="https://help.github.com/articles/splitting-a-subpath-out-into-a-new-repository" target="_blank">https://help.github.com/articles/splitting-a-subpath-out-into-a-new-repository</a><br>
<br>
This will give you a very clean history for just the CLI.<br>
<br>
git clone git://<a href="http://github.com/Katello/katello.git" target="_blank">github.com/Katello/katello.git</a> katello-cli<br>
cd katello-cli<br>
git filter-branch --prune-empty --subdirectory-filter cli master<br>
<br>
Then you'd push it to <a href="https://github.com/katello/katello-cli" target="_blank">https://github.com/katello/katello-cli</a> for<br>
something similar.<br>
<br>
For katello itself (the original repo) I'd recommend just a git rm -r so<br>
you'll retain your history because otherwise you will force everone to<br>
rebase, pull requests will require lots of effort etc.<br>
<div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
katello-devel mailing list<br>
<a href="mailto:katello-devel@redhat.com">katello-devel@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/katello-devel" target="_blank">https://www.redhat.com/mailman/listinfo/katello-devel</a><br>
</div></div></blockquote></div><br></div>