Git text invisible

I am having problems using my GIT. Everything works fine when starting CMD and "$" appears and my text appears. But when I go to my git log, my text suddenly disappears, it's just ":" and I can type in commands but not see them.

When I exit the git log, the text is still not displayed. I have an image in my link below.

If I type CTRL + C 2 times, I see the '$' sign, but the text is still missing.

Git -text-dissapear-picture

+3


source to share


3 answers


git log

uses a configured pager to display one screen of information at a time.

The default pager on Unix based systems is now less

, and it is probably also the pager on your system. I am assuming you are using Git Bash, which is just a collection of Linux programs ported to run on Windows.

less

displays an information screen, and the last line of the terminal window displays a prompt :

waiting for a command. It has several commands that you can find out about if you click h

in the prompt.

The most commonly used commands are less

:

  • f

    or <space>

    to display the next screen ( f

    comes from Forward);
  • b

    to display the previous screen ( b

    derived from "Back");
  • /

    followed by a regular expression and enter

    to search for matching substrings in the input, starting from the displayed screen (search forward);
  • ?

    followed by a regular expression and enter

    to search backwards;
  • h

    to display help (list of commands);
  • q

    , to leave.

Most commands have two or more assigned keys. I only listed the key above, which is also the easiest to type.



You can use commands less

while reading help (this is more than one screen).

If I type CTRL + C 2 times, I see the '$' sign, but the text is still missing.

On quit, less

restores the screen to the status it found when it was started.

To use a different pager program (for all Git commands requiring one), you can install it in your Git config:

git config core.pager /bin/more

      

Replace /bin/more

in the above command with the full path of your favorite pager program.

+2


source


I had this problem after exiting git log

windows git bash today, I fixed it by resetting my terminal with reset

.



+5


source


To exit the git log interface, you must type :q

-1


source







All Articles