Git: compare diffs of two commits

I have 2 commits and suspect them introduce same difference. I want compare diffs introduced by these commits (not commits itself).

I can do this with next commands

  • Difference between TortoiseGit Git Sync and Pull?
  • How to restore files deleted with “git rm *”?
  • Undoing latest push to remote branch
  • Django project bug tracked with redmine, same users
  • Git: rebase merge commit
  • Mirror git to svn
  • $ git show ad7cfab50e63784bb3168a61101c4f17726b98f1 > d1
    $ git show 4ec2d3d981948542111a04172c1d21a5524991f2 > d2
    $ diff d1 d2
    

    But may be more convenient way exists?

  • Vagrant ansible git clone permission error
  • 'git push heroku master' is still asking for authentication
  • How would I git remote prune just a specific remote branch?
  • git stash apply @stash{x} not working for me
  • Problem with ignoring a directory in git
  • Is there a way to push a bitbucket repo to a development website easily?
  • One Solution collect form web for “Git: compare diffs of two commits”

    You can skip the temporary files with process substitution:

    diff <(git show ad7cf) <(git show 4ec2d3)
    

    It’s probably not as simple as you’d wish, but simpler.

    Git Baby is a git and github fan, let's start git clone.