How to get / List all remote branches present in Git repository using command line
How to get all remote branches present in Git repository using command line
So guys, in this article, we are going to learn about getting or Listing all the remote branches name from your git repository using command line.
There are more methods to check the remote (git repository) branches name as follows:
Method 1: Listing all remote branches name by mentioning current branch with astric symbol (*):
$ git branch -a
Output:
Method 2: Listing all remote branches name:
$ git branch -r
Output:
Method 3: Listing all remote branches name with its origin:
$ git remote show origin
Output:
Method 4: Listing all remote branches name:
$ git branch --all
Output: