Skip to content

Instantly share code, notes, and snippets.

@emmiedev
Created June 15, 2023 18:09
Show Gist options
  • Select an option

  • Save emmiedev/38799b6700465d24750decedc50d8780 to your computer and use it in GitHub Desktop.

Select an option

Save emmiedev/38799b6700465d24750decedc50d8780 to your computer and use it in GitHub Desktop.
git remove big file in commit
git log --graph --full-history --all --pretty=format:"%h%x09%d%x20%s"
git filter-branch --tree-filter 'rm -f ps1.zip' HEAD
OR
$ git filter-branch --index filter 'git rm --cached --ignore-unmatched blob.txt' HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment