简体   繁体   English

Git Bash不会让我ls或cd

[英]Git Bash won't let me ls or cd

I've been using Git Bash for a while now and it usually works perfectly fine. 我一直在使用Git Bash一段时间,它通常运行得很好。 However, it stopped working today and won't let me ls or cd. 然而,它今天停止工作,不会让我或CD。 When I try to ls it gives me the error "An unknown error occured." 当我尝试ls时,它给出了错误“发生未知错误”。 When I try to cd it gives me the error "Error changing directories." 当我尝试cd时,它给出了错误“更改目录时出错”。 I think git might be working but can't test it because I can't navigate to a folder. 我认为git可能正在工作,但无法测试它因为我无法导航到文件夹。 I did try LS (in caps) and that worked, but the files in the directory were all white instead of the normal different colors. 我确实尝试过LS(在大写字母中)并且工作正常,但目录中的文件都是白色而不是正常的不同颜色。 CD (in caps) does not work. CD(大写字母)不起作用。 pwd works, and returns that I am in directory /. pwd工作,并返回我在目录/中。

I googled for this but can't find anybody with the same errors, which is pretty hilarious. 我搜索了这个,但找不到任何有相同错误的人,这非常有趣。 I tried reinstalling git bash several times but the errors never get fixed. 我尝试过多次重新安装git bash,但错误永远不会得到解决。 Anyone have any ideas? 有人有主意吗?

截图

Never mind, I figured it out. 没关系,我想通了。 Thanks to everyone who tried to help me out. 感谢所有试图帮助我的人。 My roommate went into my computer when I wasn't looking and aliased the cd and ls commands to errors he made up as a prank. 当我不看时,我的室友进入了我的电脑,并将cd和ls命令混淆为恶作剧。 There goes 2 hours... 还有2个小时......

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

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