views:

64

answers:

2

I've got Git for Windows setup (msysgit) and it was working fine for the last few days and today I've encountered an odd error.

When issuing a Git command in the Windows Command Prompt or in the Git Bash that comes bundled with msysgit, I get a strange '(END)' line appear and then I cannot issue any other comamnds.

alt text

At this point all I get are system beeps.

Any ideas?

Thanks, P.

+4  A: 

Git want to show more than one screen of information to you, do do so it call the standard unix pager program less. Just type q to return to the prompt when you no longer want to navigate in the output.

  • j move one line down
  • k move one line up
  • <space> move one page down
  • b move one page up
  • h show the help

If you want to use git efficiently you should learn the basic unix tools. Even if git build and run on windows it's pretty much an alien software on the platform.

If you don't want less just replace it with another pager in the configuration. If you don't want a pager at all just use cat :

git config --global --add core.pager cat
VirtualBlackFox
Thanks for the additional information.
paperclip
+1 For swapping out `less` with `cat`. Not that I'd ever want to do that!
Skilldrick
+3  A: 

Press q to exit the pager (which is less in git by default).

Skilldrick
Is it possible to prevent git from doing this?
paperclip
@paperclip Why would you want to? Very soon you'll need to page through the results - it's only now as you're starting off that you're only getting one page. Just get used to pressing `q`.
Skilldrick
Thanks for the tip.
paperclip