Created
October 13, 2011 16:04
-
-
Save kwharrigan/1284637 to your computer and use it in GitHub Desktop.
Example of fixing crlf on a subset of commits using 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
#!/bin/bash | |
all2dos() | |
{ | |
find * -exec dos2unix {} \; | |
} | |
export -f all2dos | |
git filter-branch -f --tree-filter 'all2dos' HEAD ^master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment