My apologies, but I am having trouble phrasing my question. I'm running on CLI (zsh
if it matters), using git version 2.20.0
and on macOS (think I've encountered it on my Ubuntu system at home too).
Question: How do you display the output of git branch
on the same CLI screen? i.e. if I run,
$ git branch
$
it pops open a new screen/window (inside my CLI) showing me all my branches. Pressing q
closes the screen and returns me to shell. The problem is that I do not remember the names of the branches I had! I want them printed on-screen!!
Ideal output,
$ git branch
* master
branch_01
branch_02
temp_branch
experiment_2_delete
$
A dubious work-around is to do the following,
$ git branch > stuff.txt
$ cat stuff.txt
* master
branch_01
branch_02
...
$
But it creates a new text file in the current directory and that gets messy. Memory tells me that this used to be the way git
worked. Something changed recently and it's driving me nuts! Is there any way to get back the old behaviour?