Apply .gitattributes and Line-Ending Consistency

Bob committed from a Windows laptop and the smoke test now dies with bash\r. Make the repository — not each laptop — decide line endings, then normalize history from here on.

Project labintermediate~25 minPro

What you'll do

  • ✓Diagnose CRLF with git ls-files --eol
  • ✓Declare text, eol and binary in .gitattributes
  • ✓Renormalize the index
  • ✓Refresh files already checked out

Lab outline

  1. 01Diagnose
  2. 02Attributes
  3. 03Normalize
  4. 04Publish

Before you start

  • Committing and pushing (Modules 1–3)

Every lab runs on a real machine of your own in the browser — no installs, nothing to clean up — and checks your work automatically as you go.

← All Git labs

Your first machine is
8 seconds away.

Learn by doing on real machines — and give every AI agent one of its own.

Free forever · No credit card · Cancel anytime

Apply .gitattributes and Line-Ending Consistency — Git lab | Kube Labs