Created
October 4, 2022 17:29
-
-
Save iversond/abfd1db97ba0149af24c667de7bc6f9b to your computer and use it in GitHub Desktop.
Remove a large file that was added to the Git index
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
filename="terraform-provider-oci_v3.85.0_x4" | |
git filter-branch --prune-empty -d /tmp/scratch \ | |
--index-filter "git rm --cached -f --ignore-unmatch $filename" \ | |
--tag-name-filter cat -- --all |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment