How does phpstorm view the current git branch in real time?

it"s really troublesome to go to the sourcetree tool every time to confirm the current branch and then develop it.

Aug.17,2021

as you can see in the lower right corner, either
or right-click the item to select git
re-select repository
re-select branch

Menu