title: Is there a single Git command to get the current tag, branch and commit?
body: <p>I'm currently using a collection of three commands to get the current tag, branch and the date and SHA1 of the most recent commit.</p>
  
  <pre><code>git describe --always --tag
  git log -1 --format="%H%n%aD"
  git rev-parse --abbrev-ref HEAD
  </code></pre>
  
  <p>Which will output something like:</p>
  
  <pre><code>1.2.3-5-gdeadbeef
  deadbeef3b8d90071c24f51ac8f26ce97a72727b
  Wed, 19 May 2010 09:12:34 +0200
  master
  </code></pre>
  
  <p>To be honest, I'm totally fine with this. But I'm using these commands from Maven and anyone who'd used Maven before, knows how much things like external commands bloat the POM. I just want to slim down my pom.xml and maybe reduce execution time a bit.   </p>