GitDock
A Git workflow extension for Visual Studio Code, designed to give you one integrated, streamlined place to manage repositories, changes, commits, branches and history.
Inspired by familiar IDE workflows, built specifically for VS Code: a Commit tool window on the side, a Git tool window at the bottom, real dialogs for push and conflicts, and keyboard shortcuts that work the moment you install it.
Preview. This is an early release. It is used every day on Linux; Windows and macOS are experimental and have not been tested yet. Please report what you find.
What you get
Commit tool window (Activity Bar, left)
- Local Changes with checkboxes per file and per hunk, partial commits without touching your index, and optional multiple changelists (
gitWorkspace.changelists.enabled).
- Commit panel with message history, Amend, Commit and Push…, and safety checks before you commit: CRLF line endings, large files, detached HEAD and protected branches.
- Rollback, Shelf (with Recently Deleted) and Stashes.
Git tool window (Panel, bottom)
- Log with the commit graph, Branch, User, Date and Paths filters, search, and the commit context menu: Cherry-Pick, Revert, Reset, Interactive Rebase, Drop, Squash, Undo Commit and more.
- Branches with favorites, incoming and outgoing counts, Checkout, Merge, Rebase, Compare and Delete.
- Changed Files of the selected commit, as a tree.
- History of a file or folder.
Dialogs
- Push Commits with commits and files per repository, Force Push with lease and protected branches.
- Update Project with merge or rebase, saving local changes by shelf or stash.
- Conflicts with Accept Yours, Accept Theirs and Merge…, opening the merge editor with Yours on the left, the result in the middle and Theirs on the right.
Editor
- Annotate with Git Blame, Show Diff, Compare with Branch or Revision, Get from Revision.
Shortcuts
- A complete keymap is on by default (
Ctrl+Shift+K push, Ctrl+Alt+K commit and push, Ctrl+T update, Alt+9 Git, and Ctrl+K, Ctrl+D, F2 and Delete inside the GitDock views), in three levels set by gitWorkspace.keymap. On macOS the keys use Cmd. The full list ships in docs/keymap.md. If another keymap extension binds the same keys, GitDock offers a snippet to resolve the conflict (GitDock: Open Keymap Extension Snippet).
Requirements
- VS Code 1.145 or newer.
- Git 2.34 or newer on the
PATH (or in git.path).
- The built-in Git extension enabled. GitDock uses its API.
- A trusted workspace. GitDock is off in Restricted Mode.
GitDock never hides the built-in Source Control view. To keep a single Git icon, right-click Source Control in the Activity Bar and choose Hide 'Source Control'.
Works in Remote-SSH and Dev Containers: install it on the remote side.
Settings
Every setting starts with gitWorkspace.. Open the Settings editor and search for GitDock to see them all. The ones people change most:
| Setting |
Default |
What it does |
gitWorkspace.keymap |
full |
Keymap level: full, safe or none |
gitWorkspace.changelists.enabled |
false |
Named changelists in Local Changes |
gitWorkspace.branches.protected |
master;main |
Branches that ask before commit and force push |
gitWorkspace.update.method |
merge |
Merge or rebase in Update Project |
gitWorkspace.dialogs.openInNewWindow |
true |
Push and Conflicts dialogs in their own window |
gitWorkspace.notifications.successes |
balloon |
Where success messages go |
Merge editor in click order
To take both sides of a conflict in the order you click, add to your settings.json:
"mergeEditor.shouldUseAppendInsteadOfAccept": true,
"mergeEditor.showCheckboxes": true
Privacy
No telemetry. GitDock makes no network calls of its own; only git talks to your remotes.
Good to know
VS Code sets some limits on extensions: tool windows cannot float, a few dialogs are Quick Picks, and some shortcuts are left to VS Code when they would collide with its own. GitDock always keeps the built-in Git features working alongside it.
License
Free to use. All rights reserved: see the LICENSE file. The source code is not public yet.
| |