Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Git TimekeeperNew to Visual Studio Code? Get it now.
Git Timekeeper

Git Timekeeper

Nikolas Psyllou

|
1 install
| (0) | Free
Automatically track coding time by Git repository and branch, with local reports and Markdown exports.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Git Timekeeper

See where your coding time goes, one branch at a time.

Git Timekeeper automatically tracks active coding time in VS Code and organizes it by Git repository and branch. Check today's progress, explore your daily history, and export clear Markdown reports without keeping a manual timer.

Your activity stays on your machine. No account, telemetry, or cloud sync.

Get started

  1. Install Git Timekeeper from the VS Code Extensions view (Ctrl+Shift+X on Windows/Linux or Cmd+Shift+X on macOS).
  2. Open a project and start editing or saving files. Tracking begins after content activity, rather than simply opening VS Code.
  3. Select Git Timekeeper in the Activity Bar to see your tracked time and branches.
  4. Open the Command Palette and run Git Timekeeper: Show Main Overview to explore your daily history.

Requires VS Code 1.90 or newer. Install Git and make it available on your PATH to associate sessions with repositories and branches. Non-Git folders are also supported.

From coding sessions to useful reports

  • Automatic tracking: records editor activity and associates sessions with the current repository and branch, including detached HEAD.
  • Idle-time limits: caps inactive sessions at your configured timeout (five minutes by default). Pause or resume tracking from the status bar.
  • Time at a glance: see today's time, weekly totals, and branch groups in the sidebar.
  • Daily and branch reports: explore active-time charts, session history, touched files, and Git commits. Expand file and commit lists when you need detail.
  • Markdown exports: export today, this week, or this month for your work log or progress updates. Reports open as documents you can review and save.
  • Spreadsheet-ready CSV: export sessions for today, this week, or this month, for the current project or all projects, with seconds and decimal hours.
  • Local backups: export your sessions to JSON and preview a backup before merging it. Existing sessions are kept, including when duplicate IDs conflict.
  • Optional commit tags: add a tag such as #time 1h 1m 5s to VS Code's Git commit message input.

Everyday commands

Open the Command Palette (Ctrl+Shift+P on Windows/Linux or Cmd+Shift+P on macOS) and type Git Timekeeper.

What you want to do Command
Review today's sessions Git Timekeeper: Show Today Overview
Explore daily history Git Timekeeper: Show Main Overview
Inspect a branch Git Timekeeper: Show Branch Report
Pause or resume Git Timekeeper: Toggle Tracking
Export a report Git Timekeeper: Export Today Report, Export Weekly Report, or Export Monthly Report
Add time to a commit message Git Timekeeper: Insert Time Tag Into Commit Message
Configure tracking, tags, or backups Git Timekeeper: Open Settings & Data

Make it fit your workflow

Open Settings & Data from the Git Timekeeper sidebar, a report, or the timer's action menu. Configure tracking, idle timeout, excluded folders, commit tags, and the status-bar branch label in one place. Choose All projects or This workspace, then select Save settings. More specific overrides are shown beside the form. Existing VS Code settings remain supported.

The status bar has one compact timer with the shortened branch. Hover it to use Start/Pause and Reset timer inside its popup; there are no separate control badges. Reset asks for confirmation and clears only today's tracked time for the displayed repository and branch. Older days, other branches and other repositories are kept. Click the timer to open actions; Settings & Data is the first choice. The popup also shows the full branch and tracking state: Tracking, Waiting, Idle, Paused, or Off. When tracking is Off, Enable tracking opens settings to enable it. Manual pause and disable stop the current session; paused time is not added when you resume. The branch label defaults to 20 characters, including the ellipsis, and can be set from 8 to 80. Hover to read the full name.

Common generated folders such as node_modules, .git, vendor, dist, build, and coverage are excluded by default. Customize the list with gitTimekeeper.excludedFolders.

Automatic commit tags are off by default. Enable them in Settings & Data. After using Generate Commit Message in Source Control, Git Timekeeper adds the time tag once the text has stopped changing for about a second. This also works when another extension fills the same Git input. Regenerating the message keeps one tag; its subject and body are preserved. Empty inputs stay empty until you write or generate a message (or run Insert Time Tag Into Commit Message). Review the tag before committing, especially if you commit immediately after generation. The Git API does not expose when a generator finishes, so this uses a short quiet period rather than a signal from the AI provider.

The format supports {duration}, {seconds}, and {branch}, with an example as you edit. Choose how time is calculated:

  • Entire branch (default): all tracked time for that repository and branch.
  • Since last commit: tracked branch time after the current HEAD commit's committer timestamp, including the part of a session after that cutoff.

Since-last-commit time survives reloads and does not reset at midnight. Amended commits, rebases, or custom Git dates can change the cutoff. An initial branch with no commit uses its available tracked time. If Git cannot supply the cutoff, the existing draft stays unchanged and the settings page explains the problem.

Back up, restore, and export

In Settings & Data → Backup & exports:

  • Export CSV… saves one row per session for your selected period/projects. Sum the active_seconds or active_hours columns in your spreadsheet.
  • Export backup… saves all sessions as a versioned local JSON snapshot.
  • Restore backup… validates a file and shows counts before you choose Merge backup. It adds missing IDs, skips duplicates, and keeps your existing version when records with the same ID differ. Repeated imports do not add copies.

When moving to another machine, explicitly map selected repositories to the current project in the preview, or keep their original paths. Paths are never matched just by repository name. Imported sessions are frozen history and do not restart tracking.

Backups up to 25 MiB are supported. Close other VS Code windows using Git Timekeeper before restoring: local saves protect against partial writes, but independent windows do not share a transaction queue. Cancelling a restore or choosing an invalid backup keeps your current history unchanged.

Your data stays local

Git Timekeeper makes no network requests and sends no telemetry. Sessions are stored in sessions.json in VS Code's extension global storage directory.

Stored records include repository and workspace paths, branch names, session times, touched file paths, and activity counts. File contents and keystrokes are not stored. Commit information is read from local Git for reports.

Exported reports can include project paths and commit information, so review them before sharing. Use Pause Tracking whenever you want to stop recording. Git Timekeeper: Reset Today Data removes today's sessions after confirmation.

A few things to know

  • Time is estimated from editor activity and idle limits; it is not a certified timesheet or a measurement of operating-system input.
  • In multi-root workspaces, tracking follows the active editor's workspace folder.
  • Reports use local dates. Sessions that span midnight are not split into separate daily records.
  • Remote and web extension hosts have not been verified.

License

MIT · Nikolas Psyllou

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft