git branch is not showing all the branches

Issue

/opt/lampp/htdocs/drupal-8.4.0$ git branch

I have installed drupal in my system ,I want to switch to other branch but when used git branch is not showing other branches !

Solution

Execute git branch -av to show all remote and local branches.

Answered By – Hoang Minh Dung

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published