[Git] List All the Remote Branches and Tags Exist on the AOSP Repository

When we download the Android source code from AOSP, the branch list and tag list are existing on the local repository. We can get these lists through the git command very easily.

Let’s go for getting the information! You just need to type this command in the work directory!
Get the branch list:
  git gitdir .repo/manifests/.git/ branch -a

Get the tag list:

  git gitdir .repo/manifests/.git/ tag


The result of the branch list,

Note:

– The .repo/manifests is downloaded from the AOSP repository.
– Man the git to get more information.

發佈留言