git: list branches from a particular remote

Posted on Posted in Uncategorized

Show some information about remote:
$ git remote show <remote-name>
$ git remote show remote1

List SHA-1 hash and branches:
$ git ls-remote --heads <remote-name>
$ git ls-remote --heads remote2

Leave a Reply

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