Last active
October 25, 2015 22:51
-
-
Save vshank77/3ad18cf674f82bf94acd to your computer and use it in GitHub Desktop.
git filter branch
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 --commit-filter ' | |
if [ "$GIT_COMMIT" = "FULL_SHA" ]; | |
then | |
skip_commit "$@"; | |
else | |
git commit-tree "$@"; | |
fi' HEAD |
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 --index-filter 'git rm --cached --ignore-unmatch FILE_NAME' -f HEAD |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment