eolas/zk/Effective_logging_in_Git.md
2024-02-16 15:19:05 +00:00

13 lines
564 B
Markdown

---
categories:
- DevOps
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 |