Skip to content

Instantly share code, notes, and snippets.

@kevduc
Created September 21, 2021 01:27
Show Gist options
  • Save kevduc/6129ab17c2a114cd4e32ce31e0f874c5 to your computer and use it in GitHub Desktop.
Save kevduc/6129ab17c2a114cd4e32ce31e0f874c5 to your computer and use it in GitHub Desktop.
Remove large file from commit history
#From https://www.deployhq.com/git/faqs/removing-large-files-from-git-history
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch path/to/file' --prune-empty --tag-name-filter cat -- --all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment