Skip to content

Instantly share code, notes, and snippets.

@vrillusions
Last active April 18, 2020 08:48
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 vrillusions/7dcecc761c4c1818d11872b8c0d91a8b to your computer and use it in GitHub Desktop.
Save vrillusions/7dcecc761c4c1818d11872b8c0d91a8b to your computer and use it in GitHub Desktop.
Example .gitattributes
# Normalize line endings of text files
* text=auto
# Add exclusions here after running reset operation
#bin/** -text
# Ignore files on running `git archive`
/.github export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
# To fix existing repo ensure your working directory is clean and run the following
#
# $ git read-tree --empty # Clean index, force re-scan of working directory
# $ git add .
# $ git status # Show files that will be normalized
# $ git commit -m "Introduce end-of-line normalization"
#
# If after running status you see files that should not be modified add them as
# exclusions above.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment