Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why "gcloud init" creates "default/" directory?

When running gcloud init, it creates a directory named "default" where it clones the sources.

Maybe a silly question, but why is it named "default"?

Is there a way to change the name or clone sources in the current directory (without creating a new one)?

like image 207
Alex Pak Avatar asked Aug 08 '26 12:08

Alex Pak


1 Answers

The 'gcloud init' command currently only clones a single repo, which is named default. in the future you may be able to host multiple repos, each with their own name.

Also, we may add the ability to nicely import other assets into your project as well, which would not necessarily live in your repo.

So, the primary Google-hosted repository is one asset that is part of your local developer workspace, and since we intend to bring in more in the future, it gets put in its own directory 'default' (which is the name of that repo) so that it does not have conflicts with future assets.

like image 144
John Asmuth Avatar answered Aug 11 '26 03:08

John Asmuth



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!