1

我想git init从 Google Drive 中运行,因为我的项目文件夹在那里,但每次我都会得到:

MacBook$ cd Google Drive
-bash: cd: Google: No such file or directory
4

2 回答 2

2

You could also adapt your script:

cd Google\ Drive
# or this could work too
cd "Google Drive"

This article references that directory as:

After you've installed Google Drive you will notice a new folder in your home directory called "Google Drive" or more specifically "Google\ Drive".
The full path is as such:

/Users/YOURUSERNAME/Google\ Drive/
于 2013-06-07T04:59:29.493 回答
1

当您这样做时,问题是“Google”和“Drive”之间的空格:

cd Google Drive

您的外壳尝试进入“Google”目录(这就是“没有这样的文件或目录”错误的原因)。

更改目录名称并再次运行该命令。

于 2013-06-07T04:01:49.093 回答