jeudi 5 février 2015

Partial git clone with relevant history


Vote count:

0




Let's say I've written a zillion puppet modules and I have their entire history within a single git repo, but now I really wished I had made one repo per module. Divvying up the file structure is easy because each is wholly contained within their own directory and are organized like GIT_ROOT/modules/NAME.


Is there a way that I can divide this repo up and not loose the history for each module? Ideally each repo would only have history relevant to the module it represents. I tried cloning the entire thing and git rm -rf everything that's irrelevant but that retains irrelevant history.


I plan to glue them back together with git submodules, FWIW.



asked 10 secs ago

JFlo

37






Partial git clone with relevant history

Aucun commentaire:

Enregistrer un commentaire