title: Difference between file in local repository and origin
body: <p>I want to find the differences between a file I have in my local repository vs. what is in the <code>origin master</code>.</p>
  <p>I know that there is <code>git diff</code>. However, I just want to isolate it down to this one particular file.</p>
  <p>For simplicity, let’s say the file is named <code>file1.txt</code> and it has a local file path = <code>[local_path]</code> and in the origin it has filepath = <code>[remote-path]</code>.</p>
  <p>What would be the Git command I need to type?</p>
  <hr/>
  <p>For those that are using <a href="https://en.wikipedia.org/wiki/Eclipse_%28software%29" rel="noreferrer">Eclipse</a>, I just found out that you can just right click → <em>Compare With</em> → <em>Branch, Tag or Reference</em> → select the appropriate version and there you go.</p>