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
ComicalMayhem@lemmy.world 6 days ago
I’m not super familiar with rebasing or git in general, just the basics. What’s the interactive rebase?
CannedYeet@lemmy.world 6 days ago
That’s the sort of general question where I couldn’t give you a better answer than you could find by Googling if I tried. But for my own amusement, a one sentence answer is that it’s a sort of mega command that lets you do various types of rewriting history like removing, reordering, redoing, rewording.
I recommend using a good GUI for it. That’s usually a lot easier than vim or another text editor if you’re not ready to go down that rabbit hole.