title: How to get list of branch heads in Git?
body: <p>I am trying to get a list of branch heads in Git. So far I have found <code>git log --simplify-by-decoration</code> which seems to include all branches and show the heads, but it also shows one extra commit which is useless for me. Is there an even better way to do this or is that what I should use?</p>
  
  <p>So to make it clear: I want to have an output that gives me the head of all branches in my local repository. Basically, I just need the hash of each of the heads, but I can just regex it from whatever output I get.</p>