git visual diff between branches

前端 未结 16 2002
独厮守ぢ
独厮守ぢ 2020-12-12 08:35

This answer is great for seeing a visual diff between two files that are checked into git: How do I view 'git diff' output with a visual diff program?

Howev

16条回答
  •  春和景丽
    2020-12-12 09:10

    UPDATE

    Mac: I now use SourceTree. Thoroughly recommended. I especially like the way you can stage / unstage hunks.

    Linux: I've had success with:

    • smartgit
    • GitKraken
    • meld

    E.g. to install smartgit on Ubuntu:

    • download the .deb from https://www.syntevo.com/smartgit/download/
    • install with sudo dpkg -i /path/to/deb`

    This does the job:

    git-diffall with a GUI diff tool like meld. See point 5 here:

    http://rubyglazed.com/post/15772234418/git-ify-your-command-line

    There's a nice post about git and meld here: http://nathanhoad.net/how-to-meld-for-git-diffs-in-ubuntu-hardy

提交回复
热议问题