Git command output is in editor (vim) and not directly to terminal output

GitVim

Git Problem Overview


I don't know why but the output from some git command are in editor (vim) and not directly to the terminal output.

By example, the command git branch open vim and list the branches but I would like that the output are directly in the terminal.

I didn't set vim as default editor on the git config.

My config is Ubuntu 18.04 and zsh with oh-my-zsh plugin.

Thanks in advance for your replies

Git Solutions


Solution 1 - Git

Reply to myself.

It is a default behavior change introduced in git 2.16.

With git --no-pager branch or git config --global pager.branch false it's ok

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionYan VhView Question on Stackoverflow
Solution 1 - GitYan VhView Answer on Stackoverflow