Scrub large git file

Last modified 1 year ago
Danger icon
The last modifications of this post were around 1 year ago, some information may be outdated!
On this page
  1. Summary
  2. Code

Summary

If you're using Git LFS and need to remove large files, this command will do it

Code

git filter-branch --index-filter 'git rm --cached --ignore-unmatch [file_name]' HEAD