Skip to content

Instantly share code, notes, and snippets.

@duydao
Created June 18, 2016 14:05
Show Gist options
  • Save duydao/e316a1917dd6c0371389f4e796d80964 to your computer and use it in GitHub Desktop.
Save duydao/e316a1917dd6c0371389f4e796d80964 to your computer and use it in GitHub Desktop.
$ echo "* text=auto" >>.gitattributes
$ rm .git/index # Remove the index to force Git to
$ git reset # re-scan the working directory
$ git status # Show files that will be normalized
$ git add -u
$ git add .gitattributes
$ git commit -m "Introduce end-of-line normalization"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment