mirror of
https://github.com/mike-rambil/Advanced-Git.git
synced 2025-12-21 01:19:48 -06:00
953 B
953 B
⬅️ Back to Past commits of a specific file
Show Commit History of a Specific File
Command
git log --oneline -- filename.txt
Examples
- List all commits that modified
filename.txt.
git log --oneline -- filename.txt
- Show commit history for a different file.
git log --oneline -- path/to/anotherfile.js
Steps
- Lists all commits that modified
filename.txt.
Related Commands
- git log -p -- filename.txt
- git blame filename.txt
➡️ See the Next Step: Show Detailed Commit History (With Changes)
Author: mike-rambil • Updated: 2024-06-10 • Tags: log, file, history