6

I'm using Github and Git bash on my Windows PC (running XP).

On Ubuuntu I'm happyily using git grep to plough through my code, but every time I call something like:

git grep "some text in my repo"

on Windows I get the results and afterwards I'm stuck with the bash window showing all kind of things [END], ~, [RETURN]... whenever I try to enter something.

Question:
What else besides CTRL+R, CTRL+Q, FN+END, Q, ESC can I try to not having to force-close and reopen git:bash in order to continue to work.

Thanks!

EDIT:
This is what I mean:

enter image description here

As soon as I start typing, the [END] string re-appears (or 50 lines ~) and I cannot write any command on Git, because whatever is in the way swallows half of what I'm typing.... nice description...

frequent
  • 27,643
  • 59
  • 181
  • 333

2 Answers2

1

Is git launching less (or something similar) so up/down arrows on your keyboard scrolls through the matches? If you don't want that, try the instructions from https://stackoverflow.com/a/12166923/972216:

set GIT_PAGER=cat

Would disable it for your console session once, or

git config --global core.pager cat

to disable it for your account.

Community
  • 1
  • 1
Jason Malinowski
  • 18,148
  • 1
  • 38
  • 55
1

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

Solution: Just type q.

Albert Xing
  • 5,620
  • 3
  • 21
  • 40
CasualCoder
  • 115
  • 1
  • 9