Viewing all `git diffs` with vimdiff

后端 未结 4 1222
广开言路
广开言路 2020-12-02 03:19

I setup git diff to wrap into vimdiff, using \"Git Diff with Vimdiff\" as a guide, and it\'s working as expected unless there are many files with changes.

4条回答
  •  庸人自扰
    2020-12-02 04:12

    You can try git difftool, it is designed to do this stuff.

    First, you need to config diff tool to vimdiff

    git config diff.tool vimdiff
    

    Then, when you want to diff, just use git difftool instead of git diff. It will work as you expect.

提交回复
热议问题