Ignore Directory Only Next to .gitignore
Syntax to ONLY ignore directory that is next to .gitignore
/dir_ignored/
/dir_ignored
Example with above syntax
- Anything below ./dir_ignored wil be ignored.
- ./subdir/dir_ignored/i-am-NOT-ignored.txt will NOT be ignored.
.
├── dir_ignored
│ ├── f2-ignored.txt
│ └── subdir
│ └── f1-ignored.txt
└── subdir
└── dir_ignored
└── i-am-NOT-ignored.txt
4 directories, 3 files
Backlinks