Search code examples
gitemacsgit-diff

Emacs Based Git Diff Tool?


Are there any emacs based visual diff tools avialable? If multiple tools are available, which is better, or more specifically which is easier to use?

How do you set up said diff tool from within git and within emacs?

Just to clarify, I will be accessing this often from outside emacs. I generally run git from the command line, and currently I am mostly developing in Visual Studio on Windows, though I do also develop in Linux (usually using emacs or Geany in that case) and Apple Mac (mainly command line and emacs).

Any major disadvantage to using emacs for diff tool if I am currently developing in Visual Studio on Windows?

Thanks.


Solution

  • If you want to use git with Emacs you have several tools:

    I use magit, its status mode will list the modified files, and you can use TAB to show the difference between worktree and index, or between index and HEAD.

    It can also call git diff for viewing diff between different version of the worktree (key d or D).

    It will also be able to use ediff to merge unmerged files, and much more.