Skip to content

Commit 6684558

Browse files
committed
Add tips for managing Git line endings on Windows/WSL in presentation slides
1 parent 61d98ea commit 6684558

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

slides/Slides.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -365,16 +365,17 @@ jobs:
365365
366366
---
367367
368-
# Multi-Service (Compose) Pattern
368+
# Tips & Tricks: Git Line Endings (Windows/WSL)
369369
370-
- docker-compose.yml defines api, db, cache, worker services
371-
- devcontainer.json references primary service: "service": "api"
372-
- Shared network: service hostnames = service names (db:5432)
373-
- volumes: persist database state or ephemeral for clean tests
374-
- Add Features only to dev container service; others use minimal images
375-
- Tip: Use HEALTHCHECK for dependent service readiness (faster stabilize)
370+
On Windows/WSL, you may see many modified files due to line ending differences between host and container.
376371
377-
Flow: Editor -> api container (extensions) -> other services via internal network.
372+
- Add a `.gitattributes` file to enforce consistent line endings:
373+
374+
```gitattributes
375+
* text=auto eol=lf
376+
*.{cmd,[cC][mM][dD]} text eol=crlf
377+
*.{bat,[bB][aA][tT]} text eol=crlf
378+
```
378379

379380
---
380381

0 commit comments

Comments
 (0)