Comment on How do I remove a file from a git commit?

CannedYeet@lemmy.world ⁨1⁩ ⁨week⁩ ago

If you have additional commits made after the commit that added the big file, you can use interactive rebase to edit the offending commit and redo the rest on top of it. If the offending commit is the latest one, then you can use reset --soft

source
Sort:hotnewtop