git subtree covering multiple directories -
i'm trying utilize 15 directories rootdir of 1 git repo ("foo") in larger project. changes made these files in larger project , pulled "foo" repo. logically want git subtree split --rejoin directories branch in "foo" , add/pull branch larger project. said way, want maintain 1-2 directories private in "foo" repo , not add/sync them larger project.
however, when looking through git docs , threads, appears not supported git subtree split (see linked thread) unless create each directory subtree or utilize git filter-branch rewrite history. git subtree , multiple directories git filter-branch suggested solution appears break syncing original "foo" repo. git filter-branch --help: the rewritten history have different object names objects , not converge original branch . changes "foo" repo construction (like putting 15 dirs under new dir via filter-branch) not possible @ time.
am stuck treating each directory subtree? doing 15 subtree splits in larger repo (to sync "foo" take important amount of time. there tricks optimizing (e.g. 1 pass through big repo's commits create branch each folder's commits)?
you might want utilize submodules. please read: http://git-scm.com/book/en/v2/git-tools-submodules
git
No comments:
Post a Comment