Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git Bash won't let me ls or cd

Tags:

git

bash

ls

cd

I've been using Git Bash for a while now and it usually works perfectly fine. However, it stopped working today and won't let me ls or cd. When I try to ls it gives me the error "An unknown error occured." When I try to cd it gives me the error "Error changing directories." I think git might be working but can't test it because I can't navigate to a folder. I did try LS (in caps) and that worked, but the files in the directory were all white instead of the normal different colors. CD (in caps) does not work. pwd works, and returns that I am in directory /.

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. Anyone have any ideas?

screenshot

like image 322
Gregory Jerian Avatar asked Dec 21 '25 03:12

Gregory Jerian


1 Answers

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. There goes 2 hours...

like image 107
Gregory Jerian Avatar answered Dec 22 '25 18:12

Gregory Jerian



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!