Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git Windows Command Prompt gets stuck during Git commands with (END)

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.

like image 640
paperclip Avatar asked Oct 13 '10 12:10

paperclip


People also ask

Why Git commands are not working in command prompt?

Method 1: Re-open Command PromptIf the path was set correctly, you will be able to use Git commands without receiving the “git' is not recognized as an internal or external command” error.

How do I end a Git bash process?

If you are using the git cli directly, pressing q in the keyboard will also do the job for you. Show activity on this post. ctrl + c is the most used task killing command for command based working windows.

Can you use Git in Windows cmd?

All you have to do is load Command Prompt (Load the Start menu, then click "Run", type cmd and hit enter), then you can use Git commands as normal.


2 Answers

Git want to show more than one screen of information to you, to 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 
like image 67
Julien Roncaglia Avatar answered Sep 21 '22 04:09

Julien Roncaglia


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

like image 27
Skilldrick Avatar answered Sep 24 '22 04:09

Skilldrick