20 lines
753 B
Markdown
20 lines
753 B
Markdown
# L05 · Git Basics II — log, diff and restore
|
|
|
|
Karta uczy czytania historii i porównywania trzech stanów Git bez niszczenia
|
|
danych. Wszystkie scenariusze działają w repozytoriach `mktemp`.
|
|
|
|
| Task | Dowód PASS |
|
|
| --- | --- |
|
|
| `task01_read_history` | trzy uporządkowane commity, HEAD=`docs` |
|
|
| `task02_compare_diffs` | HEAD=`base`, index=`staged`, worktree=`working`, status `MM` |
|
|
| `task03_restore_safely` | restore worktree, unstage index, restore do czystego `base` |
|
|
|
|
```bash
|
|
stemctl card use console-bash L05
|
|
stemctl test native-amd64 console-bash L05 1
|
|
stemctl test native-amd64 console-bash L05 2
|
|
stemctl debug native-amd64 console-bash L05 3
|
|
```
|
|
|
|
Wyniki wpisz do [answers/git-basics-2-evidence.md](answers/git-basics-2-evidence.md).
|