Languages

How to list all remote branches with git?

3 points
Asked by:
Paris-Bateman
504

Is there a way to list all remote branches using git?

1 answer
3 points
Answered by:
Root-ssh
178180

Yes, it is possible.

Quick solution:

-r parameter explanation:

  • -r | --remotes - we can use -r or --remotes, it is the same eg:
    git branch -r
    git branch --remotes
  • Option -r causes the remote-tracking branches to be listed

References:

0 commentsAdd comment
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join