Git · Junior · Question 59 of 75
What is a .gitattributes file used for?
- 1A list of files that Git should ignore
- 2Access rules for who can push which files
- ✓Correct answer: Per-path settings like line endings or LFS tracking
Explanation
For example * text=auto normalizes line endings, and *.png filter=lfs stores images in Git LFS. It's committed, so the whole team gets the same rules.