Hey everyone! I'm new to GitHub and currently working on a computer vision project. I used to have some large files (over 100MB) that I deleted after implementing a video compression tool using ffmpeg. Now I'm facing issues pushing my project because GitHub keeps throwing errors related to those deleted files. What steps can I take to resolve this? I'd appreciate any help!
4 Answers
The problem is that those large files are still part of your git history, even though you've deleted them from your local files. One option is to remove them from the history using `git filter-branch` or BFG Repo-Cleaner, but be cautious—these methods can be risky. If you don’t care about keeping your commit history, starting with a new git repo and moving your files over might be the easiest solution.
If your files were too big, you’re likely hitting GitHub's file size limits. They recommend using Git LFS (Large File Storage) for files over 100MB. Even if the files are gone now, if they were ever committed to your history, they can still cause issues.
You can still check out an earlier commit where those files exist. Just deleting them and pushing doesn't remove them from all previous commits, which is why you're still getting those complaints. You'll need to clear those larger files from your history.
The error you're seeing is because Git is still tracking those files in your commit history. Just deleting them from your current directory doesn't actually remove them from Git. You might need to completely rewrite your history to get rid of them using some tools or methods.

Related Questions
How To: Running Codex CLI on Windows with Azure OpenAI
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically