Skip to content

Instantly share code, notes, and snippets.

@ekroon
Created December 20, 2012 09:26
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 ekroon/4344115 to your computer and use it in GitHub Desktop.
Save ekroon/4344115 to your computer and use it in GitHub Desktop.
Recursive git line endings reset
Get-ChildItem -Recurse | ?{ $_.PSIsContainer } | ForEach-Object { cd $_.FullName ; git rm -r --cached . ; git reset --hard ; git add . ; git commit -m "Normalize line endings ($_)" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment