Labanino
Labanino

Reputation: 3960

Running git init from within Google Drive dir

I want to run git init from within Google Drive because my project folder is there but every time I do I get:

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

Upvotes: 1

Views: 541

Answers (2)

VonC
VonC

Reputation: 1328262

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/

Upvotes: 2

Ederson
Ederson

Reputation: 133

The problem is the space between the words "Google" and "Drive", when you do:

cd Google Drive

your shell tries to enter "Google" directory(That why the "No such file or directory" error).

Change the directory name and run the command again.

Upvotes: 1

Related Questions