title: How to see if local git repo and remote repo are same commit?
body: <p>I have a local git repo, and I have a remote git repo. What is a simple command to see what commit the remote repo is, and what commit the local repo is, so I can simple see if I'm up to date?</p>
  
  <p>This is going to be automated in a program, so I don't want lots of complicated stuff that I would have to parse. Preferably it would be cool to have both local &amp; remote output the same text, with only the commit changing between the two. Any ideas?</p>