title: Git - compare local and remote without fetching first?
body: <p>I've searched around and found no answer to this question.</p>
  
  <p>I have an app running on Heroku. 
  From my local machine I typically implement and just:</p>
  
  <pre><code>git add .
  git commit -m "whatever change, I know I can add and commit at the same time..."
  git push &lt;the-heroku-repo&gt;
  </code></pre>
  
  <p>Then it goes up and the master branch in the Heroku app is updated. So far so good.</p>
  
  <p>Now. I want to have another machine that will automatically make a pull from the Heroku repo and update itself.</p>
  
  <p>So i do that with:</p>
  
  <pre><code>git clone &lt;the-heroku-repo&gt;
  </code></pre>
  
  <p>That gets me the app and I can see the git config with this:</p>
  
  <pre><code>core.repositoryformatversion=0
  core.filemode=true
  core.bare=false
  core.logallrefupdates=true
  remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
  remote.origin.url=git@heroku.com:theapp.git
  branch.master.remote=origin
  branch.master.merge=refs/heads/master
  </code></pre>
  
  <p>To update this new repo I can do just a pull:</p>
  
  <pre><code>git pull origin
  </code></pre>
  
  <p>Or I could fetch and merge:</p>
  
  <pre><code>git fetch origin
  git merge origin/master
  </code></pre>
  
  <p>MY QUESTION</p>
  
  <p>Between the above fetch and merge I can check what are the changes by doing:</p>
  
  <pre><code>git log -p master..origin/master
  </code></pre>
  
  <p>Is there a way to find the differences between the local master branch and the latest version in the remote Heroku repo without fetching before? Just compare the local and remote and see the changes. I just can't find the proper way.</p>
  
  <p>Thanks.</p>