feat: add understanding for diffs

This commit is contained in:
Bjarke Sporring
2026-01-05 13:34:59 +01:00
parent dc94520b2a
commit d7c146975d
2 changed files with 110 additions and 0 deletions

View File

@@ -94,6 +94,14 @@ git diff <commit1> <commit2> <file>
```
Compare changes to a specific file between two commits.
**Understanding diff output:**
- Lines with `+` (green) = added
- Lines with `-` (red) = removed
- Lines with ` ` (space) = unchanged (context)
- `@@ -1,5 +1,7 @@` = location of changes (old line/count, new line/count)
For a detailed guide on reading diff output, see Module 02 README.md.
### Branching
```bash