Git - clear git bash console

2 points
Asked by:

How can I clean up and remove everything from the git bash console?

1 answers
1 points
Answered by:

To clear console in git bash we just need to type:


and press enter.

Second way is to use keyboard shortcut:

Ctrl + l

Note that clear is not git command console, it is Unix console, we can read more:

Usage example

Usage example of clear command with git bash console:

Screenshot 1 - here we have something in git bash console, after executing git status command:

Scrrenshot 2 - right before we press enter:

Screenshot 3 - here we executed clear command to clean up our git bash console, as the result we have fresh console:

That's all.

0 comments Add comment
Hey 👋
Would you like to know what we do?
  • Dirask is a friendly IT community for learners, professionals and hobbyists to share their knowledge and help each other in extraordinary easy way.
  • We welcome everyone,
    no matter what the experience,
    no matter how basic the question is,
    this community will help you.