Git Time Machine for VS Code
Explore your repository's history without leaving the editor: interactive commit graph, syntax-highlighted diffs, optional inline blame, reflog recovery, insights, and time travel between any two commits, step by step.
Free forever · MIT · Private repos included · No account · No telemetry · Zero dependencies.

Easy ways to open it
- Activity Bar sidebar: click the Git Time Machine icon on the left to jump straight into History & Graph, Compare / Time Travel, Reflog Recovery, Insights, or Active File History.
- Status Bar: click
Git TM in the bottom-left Status Bar.
- Inline Blame hover: hover any line's blame annotation and click Open commit in Git Time Machine or File History.
- Source Control view: click the history button in the Source Control title bar.
- File history: right-click any file in the Explorer or an editor and choose Open File History in Git Time Machine.
- Command Palette: Git Time Machine: Open Git Time Machine.
It runs next to your repository, so it works identically over Remote SSH, WSL, Dev Containers, and Codespaces — no local server and no open port.
Read-only unless you opt in
By default Git Time Machine only reads your repository. Turn on gitTm.enableEditMode in your user settings to reword, change the author or date, squash, drop, or revert commits. Every edit is previewed first without touching your working tree, backed up under refs/git-tm/backups/, and can be undone in one click. A workspace's own .vscode/settings.json can never turn edit mode on.

Settings
| Setting |
Default |
Description |
gitTm.showStatusBarItem |
true |
Show the Git TM launch button in the bottom-left Status Bar |
gitTm.inlineBlame |
false |
Show subtle inline Git blame on the active editor line with hover links |
gitTm.enableEditMode |
false |
Allow changing history (user or remote-machine settings only) |
gitTm.avatars |
true |
Show author avatars from GitHub and Gravatar |
Requirements
Git installed on the machine where the workspace lives. Drop and revert need Git 2.40 or newer.
The same app runs in your browser with npx git-tm. See the documentation and the changelog.
MIT licensed. Source and issues: github.com/nandhu-44/Git-Time-Machine.