Created
October 5, 2011 17:45
-
-
Save cwarden/1265128 to your computer and use it in GitHub Desktop.
git filter-branch example
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 clone saiku saiku-copy | |
| cd saiku-copy/ | |
| git-large-blob 300k | |
| git filter-branch --tree-filter 'rm -f saiku-core/saiku-web/src/test/resources/org/saiku/web/rest/resources/sampledata.sql saiku-core/saiku-web/src/test/resources/org/saiku/web/rest/resources/foodmart/foodmart.script saiku-server/custom/foodmart/foodmart.zip saiku-webapp/src/test/resources/org/saiku/web/rest/servlet/sampledata.sql saiku-core/saiku-web/src/test/resources/org/saiku/web/rest/servlet/sampledata.sql saiku-core/saiku-web/src/test/resources/org/saiku/web/rest/servlet/foodmart/foodmart.script saiku-core/saiku-web/src/test/resources/org/saiku/web/rest/service/sampledata.sql' --tag-name-filter cat -- --all | |
| rm -rf .git/refs/original/ | |
| git reflog expire --expire=now --all | |
| git gc --prune=now --aggressive |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment