What is the command to list all remote branches and their corresponding upstream branches?
Posted by GraceDv
Last Updated: July 09, 2024
To list all remote branches along with their corresponding upstream branches in Git, you can use the following command:
git branch -r -vv
- -r flag is used to list remote branches. - -vv provides verbose output, which includes the upstream tracking information for each branch. If you need to see all branches (both local and remote) along with their upstream branches, you can use:
git branch -a -vv
This will show you all branches (local and remote) with the information on their upstream branches where applicable.