title: How can I diff a tree and a remote branch in git?
body: <p>I need to diff two objects in git. One is a tree (directory) in my working directory, and the other one is a remote branch. I can do so if I find the SHA of the tree and use that in the argument of my git diff command along with the remote branch. However, I am trying to find a way not to have to dig in the SHA first. </p>
  
  <p>So, for example, if:</p>
  
  <pre><code>My_Working_Dir
    file1
    file2
    Dir1
      file3
      file4
  
  remote_branch/master
    file3
    file4
  </code></pre>
  
  <p>Then I like to be able to issue something like this:</p>
  
  <pre><code>git diff Dir1  remote_branch/master
  </code></pre>
  
  <p>This works if I replace Dir1 with its SHA, but not if I just try to use the directory name. I have tried to use diff-tree as well. But that is not helping either. Please note that the remote_branch/master does not have the Dir1 directory. </p>
  
  <p>Any help is appreciated.</p>
  
  <p>Thanks in advance. </p>