Git outputs all log logs at one time without paging or screen splitting

Git outputs all log logs at one time without paging or screen splitting

By default, when git outputs log logs, if there are too many logs to be displayed on one page, the log logs will be displayed in pages and screens, which requires the user to manually press the Enter key to output step by step until all log logs are completely output.

In some cases, it may be necessary to output the log all at once without paging and without splitting the screen, and the command: --no-pager is required. E.g:

git --no-pager log -p -3
This command outputs the code history of the last three commits at one time without paging or splitting the screen.


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325386158&siteId=291194637