问题描述
我正在尝试遵循此Github教程: https://www.youtube.com/watch?v=73I5dRucCds 当我尝试将目录更改为桌面时,会在Git Shell中得到它:
I'm trying to following this Github tutorial:https://www.youtube.com/watch?v=73I5dRucCdsWhen 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...
推荐答案
在我看来,您正在尝试了解Documents
的位置.
It seems to me you are trying to understand where Documents
is.
为此,请打开终端并输入cd
,这会将当前目录更改为您的主文件夹.
To do that open your terminal and type cd
, that will change your current directory to your home folder.
在您的家庭中,看起来像/c/Users/YOUR-USERNAME
的地方,键入ls
,您的Documents
文件夹就在其中.
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
.
这篇关于Git Bash无法将目录更改为documents文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!