Skip to content

Instantly share code, notes, and snippets.

@tburry
Created May 29, 2015 18:59
Show Gist options
  • Save tburry/7ce1f8ce04e215cffd20 to your computer and use it in GitHub Desktop.
Save tburry/7ce1f8ce04e215cffd20 to your computer and use it in GitHub Desktop.
Normalize all line endings in the current git repo to the config setting.
# Normalize all line endings in the current repo to the config setting.
git rm --cached -rf .
git diff --cached --name-only -z | xargs -n 50 -0 git add -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment