Skip to content

Instantly share code, notes, and snippets.

@JeremySkinner
Created April 29, 2010 13:47
Show Gist options
  • Select an option

  • Save JeremySkinner/383624 to your computer and use it in GitHub Desktop.

Select an option

Save JeremySkinner/383624 to your computer and use it in GitHub Desktop.
# Takes a repository which has autocrlf set to true and changes it to false using powershell
# Turn autocrlf off
git config core.autocrlf false
# Remove all files
git rm --cached -r .
# Re-add all files
git diff --cached --name-only | foreach { git add $_ }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment