What command lists all remote branches?
Posted by OliviaWm
Last Updated: June 15, 2024
To list all remote branches in a Git repository, you can use the following command:
git branch -r
This will display a list of all branches that are available on the remote repository. If you want to see both local and remote branches, you can use:
git branch -a
This command lists all branches, with remote branches prefixed by remotes/.