I'm trying to following this Github tutorial: https://www.youtube.com/watch?v=73I5dRucCds When I try to change my directory to my desktop, I get this in my Git Shell:
Natha_000@idea-PC MINGW64 ~
$ cd /desktop
bash: cd: /desktop: No such file or directory
Natha_000@idea-PC MINGW64 ~
$ cd /Desktop
bash: cd: /Desktop: No such file or directory
Natha_000@idea-PC MINGW64 ~
$ cd Desktop
bash: cd: Desktop: No such file or directory
Natha_000@idea-PC MINGW64 ~
$ cd Documents
bash: cd: Documents: No such file or directory
Natha_000@idea-PC MINGW64 ~
$ cd /c/Desktop
bash: cd: /c/Desktop: No such file or directory
Natha_000@idea-PC MINGW64 ~
$ cd Documents
bash: cd: Documents: No such file or directory
I've tried a few different things and It doesn't seem to work. Any ideas about what I'm doing wrong? I'm guessing it's going to be a pretty stupid mistake...
To change this current working directory, you can use the "cd" command (where "cd" stands for "change directory"). For example, to move one directory upwards (into the current folder's parent folder), you can just call: $ cd ..
In order to navigate to a different drive/directory you can do it in convenient way (instead of typing cd /e/Study/Codes), just type in cd[Space], and drag-and-drop your directory Codes with your mouse to git bash, hit [Enter]. Save this answer.
Change Directories Using the Drag-and-Drop Method If the folder you want to open in Command Prompt is on your desktop or already open in File Explorer, you can quickly change to that directory. Type cd followed by a space, drag and drop the folder into the window, and then press Enter.
It seems to me you are trying to understand where Documents
is.
To do that open your terminal and type cd
, that will change your current directory to your home folder.
Once in your home, which should look like /c/Users/YOUR-USERNAME
, type ls
, your Documents
folder is there.
tl;dr cd /c/Users/YOUR-USERNAME/Documents
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With