0

git bash is driving me nuts! this is my first time using it so I might be making some new and dumb errors here, I have already looked at a ton of tutorials but something just isn't working. I created a folder on my desktop, my teacher said to type in CD desktop/foldername but when I do that, it says the folder doesn't exist? but it DOES exist? its right on my desktop and i'm staring at it.

8
  • cd is used for directories (a.k.a. folders), not files. Commented Feb 23, 2017 at 7:14
  • cd is for opening directories and not files, if you want to open the file on your desktop, use text editors like vi, e.g. as vi file Commented Feb 23, 2017 at 7:14
  • This question seems to have little to do with Git and more to do with you being in the wrong folder looking for your file. Commented Feb 23, 2017 at 7:14
  • i'm sorry, it is a folder, not a file. my bad let me fix above. Commented Feb 23, 2017 at 7:30
  • Run pwd and ls; what do you see? Commented Feb 23, 2017 at 7:33

1 Answer 1

1

Sorry I'm too low in reputation for putting up comment above. Can you please try this command cd ~/Desktop/yourfoldername. I didn't use git bash before but I think this can help if you are running in a bash environment, find / -name yourfoldername

Sign up to request clarification or add additional context in comments.

1 Comment

Glad to help you! Have a nice day.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.