Wang
Wang

Reputation: 8173

git-repo how to list all branches in one google repo?

is there any way to list all branches in google repo?

I found it is very difficult to understand repo. Here only provide very few commands which does not not provide a list branch mechanism.

Upvotes: 2

Views: 2699

Answers (2)

Wang
Wang

Reputation: 8173

@ Patrick Tsai git --git-dir .repo/manifests.git/ branch -a

Upvotes: 1

Douglas Denhartog
Douglas Denhartog

Reputation: 2054

is git branch not what you are looking for?

This lists all branches, e.g.:

branch_name_1
branch_name_2
*master

Note: The * preceding a branch name denotes the current branch.

To switch branches use: git checkout branch_name_#

Upvotes: 0

Related Questions