Tim Pope's Git plugin for Vim: run any Git command with :Git, with blame, diff, staging and history in buffers
commercial softwarefree
fugitive.vim is a Git plugin for Vim. Its :Git (or :G) command runs any Git command from inside the editor, with output in a temporary buffer, commits and interactive rebases edited in the same Vim, and a summary window for staging, committing, rebasing and stashing. Other commands open any blob, tree, commit or tag as a buffer, diff the staged version side by side with the working tree, blame a file in a scroll-bound split, run git grep, move or delete files, and open the current file on the web front end of its hosting provider.
Ways to install
Package managers
Problems it solves
- stage parts of a file and commit without leaving Vim
- git blame inside my editor
- resolve merge conflicts with vimdiff
Features
- :Git runs any Git command, with paginated output in a buffer
- summary window for staging, committing, rebasing and stashing
- :Git blame in a scroll-bound split
- :Gdiffsplit to stage changes with Vim's diff
- :Gedit to open any blob, tree, commit or tag
- :GBrowse opens the file on its hosting provider, with plugins for GitHub, GitLab, Bitbucket and others
- statusline indicator for the current branch
Alternatives
The same job
These do what fugitive.vim does.
- GitLens Git blame, history and a commit graph inside VS Code, from GitKraken
- Git Blame See who last changed the current line, and when, in VS Code's status bar or inline
- Sublime Merge Git client from the makers of Sublime Text
- lazygit simple terminal UI for git commands
- Fork A fast and friendly Git client for Mac and Windows
- GitKraken Desktop Free Git GUI + Terminal for Mac, Windows and Linux
