A VSCode extension for browsing git file history.
Install the extension from the VS Code Marketplace
- Download the VSIX file from GitHub Releases
- In VS Code: Extensions → ... (View and More Actions) → Install from VSIX...
- Select the downloaded file
- Git installed and available in PATH
- File must be in a git repository
- View commit history for the current file
- Quickly switch between different versions of a file
- Preview file content from different commits
- Customizable commit format display
- Settings GUI for easy configuration
- Open a file in the editor
- Run the command "Flashback: Show File History" from the command palette (Ctrl+Shift+P / Cmd+Shift+P)
- Browse through commits to see how the file looked at different points in time
- Press Enter to select a commit and keep the file in that state
- Press Escape if nothing suits you to return to the current state
Git Flashback acts as a time machine for your files, allowing you to instantly see how your file looked at any point in history and restore it to that state with a single keystroke.
![]() |
![]() |
Standard Mode Shows the file content at the selected commit |
Diff Mode Shows differences between commits when navigating |
You can customize how commits are displayed in the list:
git-flashback.useCustomFormat
: Whether to use custom format string or individual display optionsgit-flashback.commitFormat
: Custom git log format string (see git log --pretty=format documentation)git-flashback.showSubject
: Show commit subject in the listgit-flashback.showHash
: Show commit hash in the listgit-flashback.showAuthor
: Show commit author in the listgit-flashback.showEmail
: Show author email in the listgit-flashback.showDate
: Show commit date in the listgit-flashback.showRelativeDate
: Show relative date (e.g., 2 days ago) in the list
You can use either the text field for complete customization or toggle individual elements using checkboxes.
For a more user-friendly configuration experience, run the command "Flashback: Open Settings GUI" from the command palette.
![]() |
![]() |
Standard Mode Settings | Advanced Mode Settings |