Last active
July 3, 2020 14:45
-
-
Save fischerscode/27b30f8a97efff92396631345954c84e to your computer and use it in GitHub Desktop.
Remove a file from git startingfrom a specified commit
This file contains 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 -f --index-filter "git rm -rf --cached FILENAME" --tag-name-filter cat -- ^COMMIT_HASH_SHORT^ --branches |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment