git clone [repo] cd [name of sub-dir] git filter-branch --prune-empty --subdirectory-filter [path to sub-dir] HEAD