A strange git problem: the output of some git commands is not displayed directly under the command, but will open an additional window to display, press Q to exit the window

for example, a question, such as git branch-a, opens an additional window interface to display the output of the command:

clipboard.png


q:

clipboard.png

git showgit log

git status:

clipboard.png

-sharp git status
On branch master
Your branch is ahead of "origin/master" by 1 commit.
  (use "git push" to publish your local commits)

nothing to commit, working tree clean

obviously, the output of the command is displayed directly below the command, not in an additional open window.

has anyone encountered similar problems? How to solve it? Thank you!

Git
Feb.15,2022

Terminal operation:

git config --global core.pager ''

if there is any problem, press Q to exit and press Q. Long logs such as git log may be too long, so you need a new window. Just remember to press Q to exit.


you won't be surprised if you've used vim .

Menu