Created
June 15, 2023 18:09
-
-
Save emmiedev/38799b6700465d24750decedc50d8780 to your computer and use it in GitHub Desktop.
git remove big file in commit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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