Powershell commands?

332 Views Asked by At

Ok I'm having trouble and google isn't helping, so I thought I'd come to you geniuses. I'm using Powershell and posh-git, and it keeps doing something that I'm sure I can exit out of with a magic command, I just don't know it yet.

Basically, when I run git diff (or something else with a long result), it will only give me a screen's worth of information, and end the screen with a colon

:

And if I keep pressing Enter it will add more to the screen til it is done showing everything for that command, and shows

<END>

But now what? How do I get out of this and back to calling commands? Enter, Esc and the other things I thought to try are not helping. I'm sure this must be a simple thing, but I don't know how to explain to Google what I want.

Anyone know?

2

There are 2 best solutions below

0
On BEST ANSWER

if you do a git config -l you may see some relevant entries like:

core.pager='less'
pager.diff=false
pager.log=true

You can enable or disable the pager for different commands, or set a different pager. https://www.kernel.org/pub/software/scm/git/docs/git-config.html has the details, check out the core.pager section and pager.<cmd> sections for specifics.

If you're using 'less' as your pager, hit 'h' at that : prompt to get lots of details about what you can do there, and as pointed out by others, q, Q, or ZZ will get you back to the command line.

1
On

You can terminate the current command using CTRL+C. Is that what you're asking?