When comparing fugitive (via vim) vs Magit, the Slant community recommends Magit for most people. In the question“What are the best Git clients for macOS?” Magit is ranked 5th while fugitive (via vim) is ranked 10th. The most important reason people chose Magit is:
Simple tasks, such as commits, can quickly be made without leaving the editor.
Specs
Ranked in these QuestionsQuestion Ranking
Pros
Pro Great visualization and interactive workflow
The visualization and workflow are great in fugitive. You can do side-by-side or even intra-line diffs all without having to leave your text editor.
Pro Uninterrupted workflow for common tasks
Simple tasks, such as commits, can quickly be made without leaving the editor.
Pro Seamlessly "Dive into Diffs" to trace the origin & intent of code
git blame
only shows the last change (e.g. a variable rename), but how do you find the origin of the code?
:GBlame
to open blame windowo
on the relevant line to "git show
" the commit- select a diff line from a previous version of the file, and hit
o
to open it- repeat 1 - 3, jumping back through history to find the origin of the line
Pro Uninterrupted workflow for common tasks
Simple tasks, such as commits, can quickly be made without leaving the editor.
Pro Diffs are easy
Since it's integrated with Emacs, diffs are very easy to fix. You can jump right to any file you want to fix as soon as it comes up in the logs or in the status view.
Pro Easy to remember mnemonics
You can easily learn the mnemonics for the most common tasks and use them to your advantage to speed up your workflow.
Pro Better visualization and interactive workflow
Pro Stage hunks or even just parts of a hunk using a single key press
In Magit staging a hunk or even just part of a hunk is very easy.
Magit also implements several other "apply variants" in addition to staging and unstaging. For example: you can also discard or reverse a change, or apply it to the working tree.
Pro Blame information can be viewed inline with the file
Pro Multiple buffers are used to show contextual information
Pro Powerful rebasing
Pro Available in Homebrew
brew install magit
Cons
Con Poor documentation
The documentation is rather poor and not very helpful.
Con Useful only for people who use Emacs
Magit is only useful if your text editor of choice is Emacs. It wouldn't really make any sense to open up emacs just to run Magit if you use another editor.
