Created
January 4, 2012 19:13
-
-
Save kaznum/1561530 to your computer and use it in GitHub Desktop.
force remove file from git repository.
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
#!/bin/bash | |
# force remove file from git repository. | |
git filter-branch --index-filter 'git update-index --remove filepath_to_remove' HEAD | |
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
Reconfiguration of bin