私は木を持っています:
- bower_components
- jquery
- .bower.json
- jquery.js
- ...
- underscore
- .bower.json
- underscore.js
- ...
- ...
bower_components/ファイル以外のすべてを無視したかった.bower.jsonので、次のように書きました.gitignore。
bower_components/**/*
!bower_components/**/.bower.json
gitignore man によると、git はbower_componentsexceptのサブディレクトリ内のすべてを無視する必要.bower.jsonがありますが、そうではありません。何が間違っているのかわかりませ!.bower.jsonん。運が悪いなど、さまざまな組み合わせを試しました。
git check-ignore bower_components/jquery/.bower.json -v私に与えます:
.gitignore:1:bower_components/**/* bower_components/jquery/.bower.json
ls bower_components/**/.bower.jsonファイルのリストをくれ.bower.jsonます。
私は遊ぶためのテストツリーを持っています: nocorp.me/32430Z3J1o2k