简体   繁体   English

Git Bash黑屏(Windows)

[英]Git bash black screen (windows)

I am trying to access git bash, but nothing happens (black screen). 我正在尝试访问git bash,但没有任何反应(黑屏)。 I used git bash many times during September and October, but when I tried today it did this. 在9月和10月期间,我多次使用git bash,但今天尝试这样做时。 What can I do to solve this? 我该怎么解决?

Thanks. 谢谢。

Git Bash-黑屏

Have you had Cygwin installed? 您安装了Cygwin吗? I was having this exact issue, then I found out I still had a "etc" and "bin" directories in my user folder on Windows. 我遇到了这个确切的问题,然后发现我在Windows的用户文件夹中仍然有“ etc”和“ bin”目录。 After removing these (As I didn't want Cygwin) GitBash worked for me again :) 删除这些文件后(因为我不想使用Cygwin),GitBash再次为我工作:)

Perhaps as a temporary solution you could navigate to C:\\Program Files (x86)\\Git\\bin using the windows cmd line and execute git.exe. 也许作为一个临时解决方案,您可以使用Windows cmd行导航至C:\\ Program Files(x86)\\ Git \\ bin并执行git.exe。 For me Im able to perform gitbash functions, just not with the lovely unix like syntax and interface. 对我来说,我能够执行gitbash函数,只是不能与可爱的unix(如语法和界面)一起使用。 Also if you include gitbash to be written to your PATH during install, the win cmd line still works. 另外,如果您包括在安装过程中写入PATH的gitbash,则win cmd行仍然有效。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM