Last active
April 18, 2020 08:48
-
-
Save vrillusions/7dcecc761c4c1818d11872b8c0d91a8b to your computer and use it in GitHub Desktop.
Example .gitattributes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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