gitignore any file called .KEYFILE anywhere under a directory foo, which itself is anywhere
gitignore any file called .KEYFILE anywhere under a directory foo, which itself is anywhere
To ignore any file named `.KEYFILE` that is located anywhere under a directory named `foo`, regardless of where `foo` is located in your repository, you can add the following line to your `.gitignore` file:
1 | **/foo/**/.KEYFILE |
Testing if the previous output contains the string **/foo/**/.KEYFILE
: True