How to display available branches in Android source tree?

theactiveactor picture theactiveactor · May 20, 2010 · Viewed 28.6k times · Source

Following directions on Android's main website to pull down sources, I'm looking at this command to initialize repo for the cupcake branch:

repo init -u git://android.git.kernel.org/platform/manifest.git -b cupcake

How can I view all available branches besides cupcake, i.e eclair, donut, etc...?

Answer

Łukasz Sromek picture Łukasz Sromek · Apr 26, 2012

The quickest way to list available branches without cloning/downloading anything is this one-liner:

$ git ls-remote -h https://android.googlesource.com/platform/manifest.git