File History โ
Track the complete history of any file across all commits.
Opening File History โ
From the Search Bar โ
- Press
Ctrl+Fto open the search & filter panel - Type a filename in the file search field
- Click a result to open its history
From the File Browser โ
- Click the folder icon (๐) in the file search field
- Browse the repository tree
- Click any file to open its history
From Staging Panel โ
- Right-click any file (staged or unstaged)
- Select File history
From Commit Details โ
- Click a commit in the graph
- Right-click any file in the list
- Select File history
The File History Panel โ
Shows all commits that modified the selected file:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ๐ src/components/Login.tsx โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ feat: add remember me option โ
โ John Doe โข 2 hours ago โข a1b2c3d โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ fix: resolve validation bug โ
โ Jane Smith โข Yesterday โข e4f5g6h โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ feat: create login component โ
โ John Doe โข Last week โข i7j8k9l โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโViewing Changes โ
Click any commit in the history to see:
- What changed in that specific commit
- The diff for just that file
- Before/after comparison
Use Cases โ
Understanding Code Evolution โ
See how a function changed over time:
- Open file history
- Scroll through commits
- Click each to see changes
Finding Bug Introduction โ
Identify when a bug was introduced:
- Open history for buggy file
- Look for suspicious changes
- Find the problematic commit
Tracking Authorship โ
See who changed what and when:
- Each commit shows author
- Useful for questions and reviews
Recovering Old Code โ
Find how code looked before:
- Find relevant commit
- View the file at that point
- Copy what you need
Navigation โ
Scrolling โ
- Scroll through commit list
- Older commits at bottom
Clicking โ
- Click commit to view changes
- Diff shows that commit's changes
Closing โ
- Click X button
- Press Escape
Tips โ
Check the Right File โ
Ensure you're viewing history for the correct path. Renamed files may have separate histories.
Read Commit Messages โ
Good messages explain why changes were made.
Check Related Files โ
If history doesn't explain everything, check files changed in the same commits.
Limitations โ
Renamed Files โ
History may not follow renames automatically. You might see history only from the rename forward.
Deleted Files โ
Cannot open history for deleted files from UI. Use terminal:
bash
git log --all -- path/to/deleted/fileLarge Histories โ
Files with many commits may take a moment to load.
Related โ
- File History Guide โ Detailed usage
- Commit Graph โ Repository history
- Diff Viewer โ Viewing changes
