I would like both git and gcloud to ignore all package.json
files except the one in the base folder. I've set **/package.json
in the .gitignore file which works fine except that gcloud also ignores the package.json
in the base directory.
I have solved this by creating a .gcloudignore
file with the content:
.git
.gitignore
#!include:.gitignore
!package.json
As I want exactly the same behaviour from gcloud and git I would have expected to be able to only set the .gitignore
file. Am I doing something wrong?