Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mandymozart/6e4adfd6b15da1e336820495d3587c43 to your computer and use it in GitHub Desktop.
Save mandymozart/6e4adfd6b15da1e336820495d3587c43 to your computer and use it in GitHub Desktop.
Remove large file from repository - prune files with filter
git filter-branch --prune-empty -d /dev/shm/scratch \
--index-filter "git rm --cached -f --ignore-unmatch oops.iso" \
--tag-name-filter cat -- --all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment