3 ms·
What's the solution to "I accidentally committed a GB file and pushed it, now everyone has it"?
by saboot 4y ago
What's the solution to "I accidentally committed a GB file and pushed it, now everyone has it"?
- layer8 4y agohttps://stackoverflow.com/questions/2100907/how-to-remove-delete-a-large-file-from-commit-history-in-the-git-repository https://stackoverflow.com/questions/2100907/how-to-remove-de...
- olvy0 4y agoI second the recommendation to use git rocket filter [1] from this link. A guy in our team committed a big file unnecessarily into the repo which already had a year's history behind it, and it was only a month later when I found out. git rocket filter filtered it in a few seconds. Since all team members had already gotten it, I ran it on all their repos to verify it's gone, and ran the usual git gc incantation [0] to clean their repo. [0] https://stackoverflow.com/a/29203553 https://stackoverflow.com/a/29203553 [1] https://github.com/xoofx/git-rocket-filter https://github.com/xoofx/git-rocket-filter
- saboot 4y agoThank you, this looks promising