title: List all branches in all local git clones
body: <p>I ended up creating several git clones of various repositories over time, and in some of the clones, I created more than one branch. I want to now find the clone which has a specific branch. </p>
  
  <p>I looked through StackOverflow questions and came across the following post <a href="https://stackoverflow.com/questions/2765253/git-status-across-multiple-repositories-on-a-mac">Git Status Across Multiple Repositories on a Mac</a>. Using this as reference, I decided to write my own shell script to do list all clones and the branches in each clone. However, by <code>grep</code>ing in the <code>.git</code> directory, I could not find any place where this information is available. The <code>HEAD</code> file only has information about the currently checked out branch. </p>
  
  <p>I can certainly write a script to process the output of <code>git branch</code> in each clone's working directory. However, before I start on that, I would like to know if there is an easier way of obtaining this information. </p>