GitGutter for Sublime Text: gutter icons, diff popup and hunk revert
A Sublime Text 2/3 plugin to see git diff in gutter
At a glance
- What is it?
- GitGutter is a Sublime Text 2/3 plugin that marks inserted, modified and deleted lines in the gutter and lets you inspect or revert a hunk without leaving the editor. It is a small, MIT-licensed Python package aimed at people who already work in Sublime.
- Who is it for?
- Adopt GitGutter if you edit inside Sublime Text and want per-line git state without a terminal pane. Skip it if your editor is Vim, Neovim, Emacs or VS Code, since the plugin is Sublime-specific.
- Can I use it commercially?
- Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Activity is slowing. The repository last received commits 8 months ago.
- What is it written in?
- Mainly Python, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 24, 2026, and from our analysis. They are not legal advice.
Star history
- jisaacks/GitGutter3,878 ★ · -1
| Repository | 2026-09-24 | 2026-11-24 |
|---|---|---|
| jisaacks/GitGutter | 3.9k | 3.9k |
-1 Stars in the last 61 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
The gap GitGutter fills in Sublime Text
Sublime Text has no built-in git gutter. You can open a diff in a terminal or a separate tool, but the line you just edited and the line you are about to edit are two different places. GitGutter puts the git state of the current file next to the line numbers: inserted lines, modified lines, deleted region borders, ignored files and untracked files each get their own icon in the default theme, and the status bar carries information about the file and the repository.
The audience is narrow and specific. This is a plugin for people who already use Sublime Text 2 or 3 and keep their working copy inside a git repository. The README describes the plugin as showing information about files in a git repository, and the repository layout confirms the shape of the project: a plugin.py entry point, platform keymaps for Linux, OSX and Windows, a Default.sublime-commands file, and a GitGutter.sublime-settings file. Nothing here targets an editor-agnostic workflow. If you do not run Sublime, there is no version of this for you.
The interesting part is not the icon. It is that the gutter is wired to three commands the README lists by name: Goto Change to move between modified lines, Copy from Commit to pull the original content out of a commit, and Revert to Commit to restore a modified hunk to its committed state. Those turn a passive indicator into something you act on while the file is open.
How the gutter, popup and status bar fit together
The README splits the visible output into three pieces. Gutter icons carry per-line state. The diff popup shows either the original content from the commit or the differences between that content and the working copy, and it carries its own toolbar: close, go to first change, previous change, next change, enable or disable difference highlighting, copy the original content from the commit, and revert a modified hunk. The status bar text reports on the file and the repository.
That toolbar is the design decision worth noting. The popup is not a static preview. It is a control surface, and the revert action sits one click away from a view of what you are about to discard. The copy action is the safer half of the pair, and it exists because sometimes you want the committed text back as text, not as a restored file.
The repository layout supports the reading that this is a real plugin rather than a script. There are separate keymaps per platform, a command palette file, a popup stylesheet (gitgutter_popup.css), a themes directory, and a tests directory. The presence of tests and a makefile suggests the project has some internal discipline, though the README does not describe a test command, so I cannot tell you how to run them.
What the README does not explain is how often the diff is recomputed, whether it runs on save or on every keystroke, or what happens on very large files. Those are the questions that decide whether a gutter plugin is pleasant or annoying, and the README is silent on all of them.
Installing GitGutter and getting a first diff
The README does not inline install steps. It points to the documentation site, and the installation page lives at https://jisaacks.github.io/GitGutter/install. That page is the authoritative source for the exact Package Control flow and any manual install path, and you should follow it rather than a paraphrase.
The repository does tell you what the package consists of. dependencies.json and modules/ sit alongside plugin.py, so the plugin may pull in its own dependencies rather than assuming they are present. The .python-version file at the top level indicates the Python version the project expects, which matters because Sublime Text 2 and 3 ship different embedded interpreters.
Once the plugin is active, the first real use is not a command. Open a file that is tracked by git, change a line, and look at the gutter. According to the README, a modified line gets the changed icon, a new line gets the inserted icon, and a deleted region gets border icons at the edges of the gap. The status bar should report on the file and the repository.
To act on what you see, the README names three commands. Goto Change moves between modified lines, which is the one you will use most. The diff popup, opened from the editor, adds the toolbar described above; the copy symbol (⎘) copies the original content from the commit and the revert symbol (⟲) restores a modified hunk. Both are documented as toolbar actions, not as command names, so the command palette entries are what you would check in Default.sublime-commands if you want to bind them yourself.
A minimal keymap entry, following the shape of the platform keymap files in the repository, would look like this:
[
{ "keys": ["ctrl+alt+g"], "command": "git_gutter" }
]Treat that as a sketch of the file format, not as a documented binding. The repository ships Default (Linux).sublime-keymap, Default (OSX).sublime-keymap and Default (Windows).sublime-keymap, and those are the files to read for the bindings the project actually ships.
Where GitGutter stops being the right tool
The plugin is Sublime-only, and that is the largest limitation. The topics list on the repository includes sublime-text, and the README's first line names Sublime Text as the host. If your team standardizes on VS Code, or if you live in Vim or Neovim, GitGutter cannot follow you.
The second limitation is scope. GitGutter shows you the diff of the file in front of you. It is not a history browser, not a merge tool, and not a way to review a branch. The commands it offers are all about the current hunk: navigate to it, copy the committed version, revert it. Anything that requires seeing several commits at once falls outside what the README describes.
The third is the one I would want answered before adopting it on a large repository. The README does not document performance characteristics, refresh triggers, or behaviour on very large files, and it does not document rollback of the plugin's own configuration. If the gutter lags on a big working copy, the README gives you no knob to reason about. That absence is itself information: you would be adopting a plugin whose cost model is undocumented.
Finally, the release history is uneven. Version 1.11.12 landed on 2023-12-08, 1.11.14 on 2025-10-02, and 1.11.15 on 2026-03-21. The last push was on 2026-03-21, so the project has moved recently, but the gap between 2023 and 2025 shows that activity comes in bursts rather than a steady cadence.
GitGutter against Vim-based gutters and git difftool
The related searches around this project are dominated by Vim. Vim-gitgutter by airblade, vim-fugitive, vim-signify and Neovim's built-in gutter all come up repeatedly, which tells you where the comparable tools live.
The difference in approach is architectural. Vim-gitgutter is a Vim plugin written for Vim's plugin system, and vim-fugitive is a broader git wrapper for Vim that includes diff and blame workflows alongside staging. GitGutter is a Sublime Text plugin written in Python, and its feature set is deliberately narrower: gutter icons, a diff popup with a toolbar, status bar text, and three commands. If you want staging or commit authoring inside the editor, none of the GitGutter commands do that, and vim-fugitive is the closer fit for that job, in a different editor.
The other comparison worth drawing is against git difftool. difftool hands the diff to an external program and shows you files side by side or in a pager. It is editor-independent and works over the whole changeset. GitGutter does the opposite: it keeps you in the file, shows one file's changes inline, and adds the ability to revert a single hunk from the popup. If your habit is to review a branch before committing, difftool is the better shape. If your habit is to edit a file and want to know, line by line, what you have changed, the gutter is the better shape.
There is also a naming collision to be aware of. Searching for gitgutter will surface Vim, Neovim, Emacs and VS Code results before it surfaces this one. The Sublime plugin and the Vim plugin share a name and a concept, not a codebase.
Licence, maintenance and the cost of upgrading
GitGutter is MIT licensed, per the LICENSE file at the top level. For most users that means you can use it, modify it and ship it inside a larger work, provided the licence text and copyright notice travel with it. That is the general shape of MIT, not legal advice, and if you are redistributing the plugin inside a commercial product you should read the actual file rather than this paragraph.
The upgrade cost is low by construction. Sublime Text plugins installed through Package Control are updated by the package manager, and the repository carries a VERSION file and a release.py script, so releases are cut from the same tree you install from. There is no server component, no database migration, and no config schema that changes shape between releases as far as the README describes. The main upgrade risk is a settings key being added or renamed; GitGutter.sublime-settings is the file to diff against your own overrides after a version bump.
Maintenance is the part to weigh honestly. The last push was on 2026-03-21, and the release before that was 2025-10-02, with 2023-12-08 before that. The project is not archived, and it has shipped in the last six months, but the spacing of releases suggests a maintainer who responds when something needs attention rather than one shipping on a schedule. If you need a plugin with a predictable release train, this is not that. If you need a gutter in Sublime Text, the field is thin and this is the established option.
Editorial conclusion
Adopt GitGutter if you edit inside Sublime Text and want per-line git state without a terminal pane. Skip it if your editor is Vim, Neovim, Emacs or VS Code, since the plugin is Sublime-specific. Before relying on it, check the install page at jisaacks.github.io/GitGutter/install for the Package Control steps and confirm the settings file GitGutter.sublime-settings exposes the keys you need.
Frequently asked questions
What is GitGutter for Sublime Text?
It is a Sublime Text 2/3 plugin that shows information about files in a git repository, including gutter icons for inserted, modified and deleted lines, a diff popup, and status bar text about the file and repository. It also provides commands such as Goto Change, Copy from Commit and Revert to Commit.
Is there a git diff command that GitGutter replaces?
No. GitGutter does not replace git diff; it surfaces the diff of the current file inside Sublime Text and adds actions on a single hunk. The README describes the diff popup as showing the original content from the commit or the differences between it and the working content, which is a view of the same information in the editor rather than a substitute for the command.
How is GitGutter different from vim-gitgutter or vim-fugitive?
They run in different editors. GitGutter is a Sublime Text plugin written in Python, while vim-gitgutter and vim-fugitive are Vim plugins. GitGutter's documented scope is gutter icons, a diff popup with a toolbar, status bar text and three commands; vim-fugitive is a broader git wrapper, so the feature sets are not equivalent even though the names overlap.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/jisaacks-gitgutter)Star history chart for your README
[](https://hysenlabs.com/projects/jisaacks-gitgutter)Was this useful?