How to exit the git listing?

2

I'm having a project downloaded from the GitHub repository.

When I run the command git log within this project, it lists all the branches in the project, but I can not get out of the list.

I've already tried ESC on keyboard, I already tried Ctrl + C , but these alternatives do not work, suggestion?

    
asked by anonymous 28.11.2018 / 16:59

2 answers

3

Welcome to less ! A Unix pager that does more things than more .

You can do a lot of interesting with less , like searching for a regular expression with / . But if your interest is just getting out of the program, just a q .

This is the same pager you see when querying man of any program, such as man less .

Details extracted from comments

As well remembered by @Anderson Carlos Woss , you can configure your pager. And this configuration can be done by repository (not just global).

According to documentation that @hkotsubo has been dug, just set the core.pager property to make the setting. Read the official documentation .

As a humorous note from programmers:

  

You can set it [ core.pager ] to more or to your favorite pager (by default, it's less )

In free translation (translating even the name of the programs):

  

You can set it [ core.pager ] to plus or to your favorite pager (by default, less )

    
28.11.2018 / 17:13
0

Hello

CTRL+Z

It can solve your problem. This command suspends the processes in question, to terminate them you can just type q

    
28.11.2018 / 17:02