Languages

Git - clear git bash console

2 points
Asked by:
JustMike
3491

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

1 answers
1 points
Answered by:
JustMike
3491

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

clear

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:

https://en.wikipedia.org/wiki/Clear_(Unix)

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.