title: How to get the Git current branches and tags
body: <p>I would like to set an alias for getting the ref names pointing at the current changeset (<code>HEAD</code>) or a given ref. The aim is to know "where are we?", "which branches and tags are equivalent (pointing at the same ref)?", "what is the current ref?", "where is the given ref compared to HEAD?".<br>
  Some of these informations are available using various Git commands and shown in most Git prompts.</p>