how to get list of all remote branches in git code example Example: git list remote branches git branch -r