How do I use .gitignore to ignore a file that can be in more than one folder, having the same name?
I have
-folderA
-folderAA
-file.json
-folderB
-folderBB
-file.json
What I need is an expression to ignore both file.json in folderA/folderAA and folderB/folderBB without having to use two expressions for each file.
EDIT START
The file is already tracked by git
EDIT END
You can use the **
wildcard to specify any directory
for example:
**/file.json
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With