Created
April 27, 2022 03:13
-
-
Save felipefpx/3d033af1ed2d7dbfd64fe62a85c82ee7 to your computer and use it in GitHub Desktop.
Remove file completely from git and history
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 filter-branch --force --index-filter \ | |
"git rm --cached --ignore-unmatch *file-path*" \ | |
--prune-empty --tag-name-filter cat -- --all | |
git push --force --verbose --dry-run | |
git push --force | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment