I opened a list of branches in the terminal(iTerm), and then I don't know how I can go to the current branch in the current situation.
UPD:
The problem is to get out of the list of these branches, that is, to close this editor
To get out of this view in the terminal you just have to press q
. It's as simple as that.