Skip to content

Instantly share code, notes, and snippets.

@kwharrigan
Created October 13, 2011 16:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kwharrigan/1284637 to your computer and use it in GitHub Desktop.
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
#!/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