grep" unstable on my Windows PC? I use Github and Git bash on my Windows PC (running XP ). On Ubuuntu, I enjoy using git grep to pl...">

Why is "w20> grep" unstable on my Windows PC?

I use Github and Git bash on my Windows PC (running XP ).

On Ubuuntu, I enjoy using git grep to plow through my code, but every time I call something like:

 git grep "some text in my repo" 

on Windows, I get results, and then I am stuck in a bash window showing all kinds of [END], ~, [RETURN]... whenever I try to enter something.

Question:
Other than CTRL+R, CTRL+Q, FN+END, Q, ESC , I can try not to force close and reopen git: bash to continue.

Thanks!

EDIT:
Here is what I mean:

enter image description here

As soon as I start typing, the [END] line appears again (or 50 lines ~ ), and I cannot write any command on Git, because everything that is in the way swallows half of what I typed ... nice description ...

+6
source share
2 answers

I was wondering about this also after installing git and running git bash. It seems that "git grep" passes commands through "less."

Solution: just enter q .

+1
source

Is git launching smaller (or something similar), so do the up / down arrows on your keyboard scroll through matches? If you do not want this, try the instructions fooobar.com/questions/273661 / ... :

 set GIT_PAGER=cat 

Disable it for the console session once, or

 git config --global core.pager cat 

to disable it for your account.

+1
source

All Articles