Comment on How do I remove a file from a git commit?
Ordoviz@lemmy.ml 6 days ago
Make sure your working tree is clean (if not, commit or stash your changes), then run
$ git rm ./that_one_big_file $ git history fixup deadbeef
Replace deadbeef with the commit that introduced that_one_big_file.
For more complex history editing tasks, see git rebase in depth.
ComicalMayhem@lemmy.world 5 days ago
Someone else recommended
rmbefore but I hadn’t seengit history fixup deadbeefcommand before. I’ll test this out sometime, thanks for the suggestion and the link!