Closed LunarLanding closed 5 months ago
That is a great suggestion and one that has also crossed my mind before, in particular since we currently still mention git filter-branch
in the README.
@LunarLanding Interested in sending a PR to document your approach in the README, potentially replacing the current recipe for git filter-branch
?
@kynan just did, because I wanted to keep everything in the same interpreter and minimize write/read to disk for performance, it is slightly involved, but still useful information I think.
https://github.com/newren/git-filter-repo is pointed to by git-filter-branch via a scary warning:
Apparently git-filter-repo is a python tool that can run python code directly on the text objects. Like so (found here, edited so it works for my case)
It would be nice to have something like this but doing the rewriting with nbstripout.