Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
672 views
in Technique[技术] by (71.8m points)

git bash - GitBash not outputting to console

GitBash suddenly stopped working correctly. I tried uninstalling and reinstalling with no avail.

git commands seem to execute, but doesn't show anything in the console. For instance, I can pull, push, init and it works, but nothing shows on the command line.

git --version doesn't return anything to the console.

However, if I output it to a file with git --version > output.txt, it shows correctly in the file.

Also doesn't show the current branch on the command line. Newly reinstalled. Am I missing some config or is it some windows issues, or something else?

I'm running git version 2.19.2.windows.1 on windows 7.

git --version in the windows command line works fine, but not in GitBash.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

That has happened to me a few times in Windows. In each case, this post held the secret.

In my case, the cursor didn't move, or show my typing onscreen. However, it actually executed the command (if I pressed Enter), even though it looked like I didn't type anything in!

The solution was to type reset < Enter >


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...