How to ignore parent directory in .gitignore
?
I tried this patterns, but seems they are don't work:
/../*
../
../*
If you want to ignore a folder but don't want to modify an existing .gitignore, drop a .gitignore in the folder containing only an asterisk.
*
Here is a quick BASH example to accomplish this task for the .idea folder:
$ echo '*' > .idea/.gitignore
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