Are you looking for a way to prevent git grep from showing its output through a pager? Try:
GIT_PAGER='' git grep ...
git grep sends its result via a pager, which you can disable by setting the GIT_PAGER environment GIT_PAGER . I think you see that your pager displays text at the bottom of the screen, and not git does this. If this is not what you want, we need to learn more about what is happening.
source share