Suppose my terminal screen is 40 lines high.
Suppose I type in “clear”;
Suppose the output if git grep is only 1- lines.
Now, the desired output I want is to have the first 10 lines of my console be the output of git grep.
Instead, git grep fills in a bunch of blank lines and makes my output the bottom ten lines of the screen the output of git grep.
How can I fix this?
Are you looking for a way to have
git grepnot show its output through a pager? Try:git grepsends its output through a pager, which you can disable by setting theGIT_PAGERenvironment variable. I think what you are seeing is your pager displaying the text at the bottom of the screen, rather thangitdoing so. If this is not what you want, we need to know more about what’s happening.