Ruby 2.0.0 and git collision

I'm at a loss here. I am using GIT, opening a DOS window that runs Ruby 2.0.0. When I do a GIT diff it gives me a promotional video, but then leaves me in some sort of limbo edit with a prompt (END) instead of c: ... (see screenshot)

I tried Ctrl ^ C and: q and a bunch of other things, but I cannot escape this mode. In the screenshot you can see that I typed Ctrl ^ C and it LOOKS like I ran back to the Cmd prompt, but as soon as I try to type anything else it puts me back into (END) mode.

I do not understand what I did to get into this mode, or what I am doing to avoid it.

screenshot:

+3


source to share


3 answers


By default, git diff

puts you in a pager, for example less

or more

. Control-C can't knock you out of the pager, but you can just press q

to exit. You can use git --no-pager diff

to prevent it from using the pager at all.



+2


source


Perhaps something or someone has changed your ~ / .gitconfig file. This can override a lot of standard git actions.



0


source


q seems to have worked - At this time.

Naturally, this was one of the first things I tried, but it didn't work. Don't know what I am doing wrong, but now it works. (Maybe I'll come back if / when it stops working again.)

0


source







All Articles