Git branch command behaves like 'less'


When I use the git branch command to list all branches, I see the output of git branch | less.

The command git branch is supposed to show a list of branches, like ls does for files.

This is the output I get:

Enter image description here

How do I get the default behaviour of git branch? What causes the paged output?

My .gitconfig looks like this:

  email = [email protected]
  name = Dennis H.
  default = simple
   tool = vimdiff
  editor = nvim
  excludesfile = /Users/dennish/.gitignore_global
  ui = true
  br = branch
  ci = commit -v
  cam = commit -am
  co = checkout
  df = diff
  st = status
  sa = stash
  mt = mergetool
  cp = cherry-pick
  pl = pull --rebase
[difftool "sourcetree"]
  cmd = opendiff \"$LOCAL\" \"$REMOTE\"
[mergetool "sourcetree"]
  cmd = /Applications/ 
  \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
  trustExitCode = true


As mentioned in comments to Mark Adelsberger's answer, this was a default behavior change introduced in Git 2.16.

You can turn paged output for git branch back off by default with the pager.branch config setting:

git config --global pager.branch false

How do you rename a Git tag?

How do I "commit" changes in a git submodule? [duplicate]