How to extract a git subdirectory and make a submodule out of it?
Nowadays there’s a much easier way to do it than manually using git filter-branch: git subtree Installation NOTE git-subtree is now part of git (if you install contrib) as of 1.7.11, so you might already have it installed. You may check by executing git subtree. To install git-subtree from source (for older versions of git): … Read more