gitignore any file called .KEYFILE directly inside a directory foo, which itself is anywhere
gitignore any file called .KEYFILE directly inside a directory foo, which itself is anywhere
Here's a gitignore pattern that will ignore any file named `.KEYFILE` that's directly inside a directory named `foo`, regardless of where the `foo` directory is located in the repository:
1 | **/foo/.KEYFILE |
Testing if the previous output contains the string **/foo/.KEYFILE
: True
gitignore any file called .KEYFILE directly inside a directory foo, which itself is anywhere
gitignore any file called .KEYFILE directly inside a directory foo, which itself is anywhere
Here's a gitignore pattern that will ignore any file named `.KEYFILE` that is directly inside a directory named `foo`, regardless of where the `foo` directory is located:
1 | **/foo/.KEYFILE |
Testing if the previous output contains the string **/foo/.KEYFILE
: True
gitignore any file called .KEYFILE directly inside a directory foo, which itself is anywhere
gitignore any file called .KEYFILE directly inside a directory foo, which itself is anywhere
To ignore any file named .KEYFILE that's directly inside a directory named foo (regardless of where foo is located in the project), use this pattern in your .gitignore:
1 | **/foo/.KEYFILE |
Testing if the previous output contains the string **/foo/.KEYFILE
: True
gitignore any file called .KEYFILE directly inside a directory foo, which itself is anywhere
gitignore any file called .KEYFILE directly inside a directory foo, which itself is anywhere
To ignore any file named `.KEYFILE` that's directly inside a directory named `foo`, regardless of where the `foo` directory is located in the project hierarchy, use this pattern in your `.gitignore`:
1 | **/foo/.KEYFILE |
Testing if the previous output contains the string **/foo/.KEYFILE
: True
gitignore any file called .KEYFILE directly inside a directory foo, which itself is anywhere
gitignore any file called .KEYFILE directly inside a directory foo, which itself is anywhere
Here's a .gitignore pattern that will ignore any file named `.KEYFILE` that's directly inside a directory named `foo`, regardless of where the `foo` directory is located in the repository:
1 | **/foo/.KEYFILE |
Testing if the previous output contains the string **/foo/.KEYFILE
: True