4 ms·
this is great! I used to delete the entire repo and make a new one to get around accidentally checking in something huge. But it does give: WARNING: git-filter
by andrewfromx 4y ago
this is great! I used to delete the entire repo and make a new one to get around accidentally checking in something huge. But it does give:
WARNING: git-filter-branch has a glut of gotchas generating mangled history
rewrites. Hit Ctrl-C before proceeding to abort, then use an
alternative filtering tool such as 'git filter-repo'
(https://github.com/newren/git-filter-repo/) instead. See the
filter-branch manual page for more details; to squelch this warning,
set FILTER_BRANCH_SQUELCH_WARNING=1.
So the other option is:
git filter-repo --invert-paths --path path/to/file