git show commit in beyond compare

后端 未结 6 1712
半阙折子戏
半阙折子戏 2021-02-05 06:46

I would like to see a specific commit in Beyond Compare or any other separate diff tool while viewing it via git show. I tried looking at help of git show/difftool/

6条回答
  •  花落未央
    2021-02-05 07:13

    Once you have a diff tool set up, like the awesome p4merge, you can do this:

    git diff HEAD HEAD~1
    

    Works like a charm.

    Similarly if you want to see the commit before that, you can do:

    git diff HEAD~1 HEAD~2
    

提交回复
热议问题