If you run a command that produces a lot of output in a Git Bash and you try to scroll up to the beginning of that output, you may see that it has been truncated.
The number of lines that can be displayed in the Git Bash is controlled by a scrollback buffer size (10000
lines, by default).
This short note shows how to increase the terminal scrollback buffer size in the Git Bash.
Cool Tip: How to clear a commands history in Git Bash! Read More →
Scrollback Buffer in Git Bash
To increase the scrollback buffer size, open the Git Bash terminal, right-click on it to open a context menu and click on the “Options“:
Select the “Window” and change the “Scrollback lines“:
The “Scrollback lines” controls the scrollback buffer size i.e. the number of lines to display in the Git Bash terminal.
Cool Tip: How to clear a commands history in Git Bash! Read More →