我一直在研究 git,我试图 cd into/home/pi/Desktop/python_git/.git
但它抱怨没有名为 .git 的目录/.git
。我知道这是因为它以 a 开头,.
因此被隐藏,但我不知道正确的论点,当我运行man cd
它时说No manual entry for cd
.
我在 Raspberry Pi 3 上运行 Debian Linux。
如果您收到的错误是 about /.git
,那么您必须尝试运行
cd /.git
Run Code Online (Sandbox Code Playgroud)
那将寻找在目录中调用.git
的/
目录。你想简单地运行:
cd /home/pi/Desktop/python_git/.git
Run Code Online (Sandbox Code Playgroud)
或者,如果您已经在/home/pi/Desktop/python_git/
,只需
cd .git
Run Code Online (Sandbox Code Playgroud)
隐藏的文件和目录就像普通的一样。默认情况下,它们根本没有列出。除此之外,您可以像与任何其他目录或文件一样与它们进行交互。