Information Technology Reference
In-Depth Information
• All text files stored under windows/ will use CRLF
• All text files stored under mixed/ will always preserve original line end-
ings
• All other text files will use LF
Hint This solution is used within a jQuery project. Thanks to the * eol=lf rule
stored in the .gitattributes file, all text files are always encoded using LF as an
end-of-line character; no matter what your platform and configuration.
13-8. Ignoring automatically generated
files
Problem
You start a new project in which some tools generate temporary files. You do not want
to commit them into the repository. The temporary files in your project conform to the
following rules:
• They are stored within the / tmp/ directory.
• Their name ends with the .abc extension.
Therefore, you want to ignore the files that match the two following patterns:
/tmp/
*.abc
You want to share the rules for ignoring files with all the developers who work on
this project.
Solution
Initialize a new repository:
Search WWH ::




Custom Search