How to list a git repository’s all branches on the remote server?

I can list all local branches by

git branch

How to list a git repository’s all branches on the remote server?

You need the -r option:

git branch -r

From the man page of git-branch.

-r

List or delete (if used with -d) the remote-tracking branches.
Answered by anonymous.

Leave a Reply

Your email address will not be published. Required fields are marked *