eolas/zk/Effective_logging_in_Git.md
2024-02-17 13:27:49 +00:00

11 lines
541 B
Markdown

---
tags: [git, procedural]
---
# Effective logging in Git
| Root command | Variant | Output |
| ----------------- | ------------ | -------------------------------------------------------- |
| `git log` | filename.txt | List the commits that changed the given file |
| `git log --patch` | filename.txt | Show the diff changes for each commit for the given file |
| `git log --patch` | null | Show the diff changes for each commit for all files |