how to list branches of android source tree

You can clone the git repository first, and then list branches:

$ git clone http://android.googlesource.com/platform/manifest.git $ cd manifest $ git branch -r


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

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


The manifests are already checked out as part of the repo init process. To get a list of available branches, (from your android repo checkout root), use this command:

git --git-dir .repo/manifests/.git/ branch -a

If you don't want to clone the repository just for this, you can see the branches on the  web interface .

https://android.googlesource.com/platform/manifest


你可能感兴趣的:(how to list branches of android source tree)