How to List All Remote Branches in Git
Local branches List all branches on your local repository: git branch This shows only branches that exist locally on your machine. Remote branches To list all branches on the remote server, use the -r flag: git branch -r This displays remote-tracking branches — local references to branches that exist on the remote repository. These are…
