I want to get all branch names of a git repository. Currently, I clone the repository then get them on local machine. This is inefficient because all I need is names and nothing else.
I wonder if it is possible to do that? If so, what command I can use.