newren / git-filter-repo

Quickly rewrite git repository history (filter-branch replacement)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FR: Filter into new repo

dronus opened this issue · comments

It would be useful if git-filter-repo could directly output into a new (bare) repo.

For example, extracting a small subproject or code from a content-heavy repository currently requires the full local non-cloning step, which may take a long time and doubles the amount of storage space needed.

As far as I understand, the filtering works by fast-export and fast-import, so may be a transfer into a new, empty repo is possible in the same step? So the initial cloning could be left out, and git-filter-repo would just write a new repo with all changes applied.