Export subtree with history Category git Added on 2020-02-04 Source source git filter-branch --subdirectory-filter foodir -- --all git-filter-branch(1)