tags:

views:

65

answers:

3

Im new to Git and Terminal. This is pretty basic stuff, but how can i exit a listing mode generated by the git status command?

+2  A: 
:q

that's a less command, actually. It uses the same commands as vi.

RageZ
If it's less, then no colon (:) is needed. You're thinking if vi!
Carl Smotricz
yeah, just `q` works
Martinho Fernandes
both works so .....
RageZ
sure, I don't get the downvote.
Martinho Fernandes
they don't like me ... =)
RageZ
@Jonathan: thanks for the edit
RageZ
+6  A: 

I have to guess here, but git is probably running its output into your $PAGER program, likely less or more. In either case, typing q should get you out.

Carl Smotricz
The pager used by git is selected by `core.pager` configuration variable (if it is set), then GIT\_PAGER enviroment variable, then PAGER environment variable, then `less` as fallback.
Jakub Narębski
A: 

Type 'q' and it will do the job.

Whenever you are at the terminal and have a similar predicament keep in mind also to type 'quit', 'exit' and the abort key combination 'Ctrl + C'.

allesklar