title: Get current version of repository
body: <p>I'm new to GIT, but i can't find out how to :</p>
  
  <ol>
  <li>Get the version of a repository (folder offline)</li>
  <li>Get the last version of a repository (online)</li>
  </ol>
  
  <p>I can only compare the two, but it doesn't give me any information about the version. : <code>git status</code>, just tell me it's up to date.</p>
  
  <p>How can i have something like this :</p>
  
  <pre><code>Your version : 1.9.0
  Latest version : 1.10.1
  </code></pre>
  
  <p>With <code>conky</code> as example : <a href="https://github.com/brndnmtthws/conky" rel="noreferrer">https://github.com/brndnmtthws/conky</a></p>