← Quiz: Git Config, .gitignore and Hooks: all 10 questions
Quiz: Git Config, .gitignore and Hooks · Question 7 of 10
Why do teams commit a .gitattributes file with text=auto eol=lf?
Why do teams commit a .gitattributes file with * text=auto eol=lf?
- A.To make Git faster
- B.So everyone stores consistent LF line endings and diffs do not show every line as changed
- C.To ignore binary files
- D.To enable hooks for all developers
Answer & explanation
Correct answer: So everyone stores consistent LF line endings and diffs do not show every line as changed
It travels with the repository, unlike each person's core.autocrlf setting.
Can you get the rest right without peeking?
Take the timed Quiz: Git Config, .gitignore and Hooks quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →