title: How to combine diffs of previous commits in Git
body: <p>I started working on an issue that I thought would only take one commit, then I started to include other features and UI changes with this issue and it ended up being 4 commits or so. I want to see a merge of all the diffs of those commits without overlaps at once and I'm not sure if such a git command exists.</p>
  
  <p>I tried <code>git show sha sha sha sha</code> but it just shows all the diffs not a merge of the diffs like I want.</p>
  
  <p>For example if commit 1 added a line and commit 2 removed that same line, the merged diff should not even mention this line of code, similarly for the same line being modified by commit 1 and 2 should only show the final edit of commit 2.</p>
  
  <p>It is important to keep in mind that there are several commits between the 4 commits in question since multiple users are committing to the same repository.</p>