Make git branch not behave like less

Terminal window showing git branch using less to list branches
In Git 2.16, the git branch command was changed to use less by default.

I’ve long been annoyed by how git branch uses less (or, more correctly, whatever you have configured as a “pager” for your terminal) to show the list of branches.

Apparently this was a change in default behavior introduced in Git 2.16.0:

* git branch --list" learned to show its output through the pager by default when the output is going to a terminal, which is controlled by the pager.branch configuration variable. This is similar to a recent change to "git tag --list".

But StackOverflow comes to the rescue again!

git config --global pager.branch false

This also goes for tags:

git config --global pager.tag false