Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to Software Development on Codidact!

Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.

Reaching to a directory in git-bash

+2
−0

I have created a directory named Temporary_add_to_version_control on Desktop. Now I am trying to reach that directory by typing the following in git-bash:

cd ~/Desktop/Temporary_add_to_version_control/

I am getting the error message:

bash: cd: /c/Users/username/Desktop/Temporary_add_to_version_control/: No such file or directory

Why am I getting this error message? How do I get to my directory?

History
Why does this post require moderator attention?
You might want to add some details to your flag.
Why should this post be closed?

3 comment threads

Does this have something to do with RStudio? (1 comment)
Post Feedback (1 comment)
Unreproducible (1 comment)

1 answer

+3
−0

You can narrow down the problem by using cd to navigate to the different nested directories in the path one at a time, starting from the one on the left. The first one that gives you an error tells you that this is the directory causing the problem.

In this particular case, you could try the following in this order:

cd ~
cd ~/Desktop
cd ~/Desktop/Temporary_add_to_version_control

Once you have identified which directory is causing the problem, you can edit the question to add more detail, or post a self answer to the question if narrowing down helped you solve the problem yourself.

History
Why does this post require moderator attention?
You might want to add some details to your flag.

0 comment threads

Sign up to answer this question »