GitBash不输出到控制台 [英] GitBash not outputting to console

查看:441
本文介绍了GitBash不输出到控制台的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

GitBash突然停止正常工作.我尝试卸载并无济于事.

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

git命令似乎可以执行,但是在控制台中什么也没显示.例如,我可以进行拉,推,初始化操作,但是在命令行上没有任何显示.

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不会向控制台返回任何内容.

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

但是,如果我使用git --version > output.txt将其输出到文件中,它将在文件中正确显示.

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

也不会在命令行上显示当前分支.重新安装.我是否缺少某些配置,还是某些Windows问题,还是其他?

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?

我正在Windows 7上运行git版本2.19.2.windows.1.

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

git --version可以正常工作,但在GitBash中不能正常工作.

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

推荐答案

在Windows中,这已经发生了几次.在每种情况下,这篇文章都是秘密.

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

在我的情况下,光标没有移动,或在屏幕上显示了我的键入内容. 但是,它实际上执行了命令(如果按Enter键),即使看起来好像我没有输入任何内容!

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 >

这篇关于GitBash不输出到控制台的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆