List remote branches - RedHatInsights/red-hat-ansible-automation-platform-documentation GitHub Wiki
The following command displays all branches in your configured remotes:
$ git branch -r
The following command displays only upstream branches:
$ git remote show upstream
$ git branch -r origin/HEAD -> origin/main origin/add-assemblies origin/add-images origin/add-tower-source origin/analytics origin/ansible-tower-source origin/auto-approve origin/editing-portfolios origin/getting-started origin/install-migrate origin/main origin/migration-title origin/new-attributes origin/new-onboarding origin/remove-procedure origin/samccann-play-number origin/surveys origin/update-add-products origin/update-approval-workflow origin/update-edit-portfolios upstream/1.2 upstream/2.0 upstream/add-assemblies upstream/add-images upstream/add-tower-source upstream/analytics upstream/ansible-tower-source upstream/auto-approve upstream/editing-portfolios upstream/getting-started upstream/install-migrate upstream/main upstream/migration-title upstream/new-attributes upstream/new-onboarding upstream/remove-procedure upstream/surveys upstream/update-add-products upstream/update-approval-workflow upstream/update-edit-portfolios
$ git remote show upstream * remote upstream Fetch URL: [email protected]:RedHatInsights/red-hat-ansible-automation-platform-documentation.git Push URL: [email protected]:RedHatInsights/red-hat-ansible-automation-platform-documentation.git HEAD branch: main Remote branches: 1.2 tracked 2.0 tracked 2.0-ea tracked add-assemblies tracked add-images tracked add-tower-source tracked analytics tracked ansible-tower-source tracked auto-approve tracked editing-portfolios tracked getting-started tracked install-migrate tracked main tracked migration-title tracked new-attributes tracked new-onboarding tracked remove-procedure tracked surveys tracked update-add-products tracked update-approval-workflow tracked update-edit-portfolios tracked Local ref configured for 'git push': main pushes to main (up to date)