Languages

How to list all remote branches with git?

3 points
Asked by:
Paris-Bateman
254

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

1 answer
3 points
Answered by:
Paris-Bateman
254

Yes, it is possible.

Quick solution:

git branch -r

-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 comments Add comment
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