I’ve a directory projects/ in root directory. the root directory is added to git. in projects I’ve several subdirectories. But I want to track only projects/admin not projects/x nor projects/y. What ignore rule I need to write in .gitignore ?
I’ve a directory projects/ in root directory. the root directory is added to git.
Share
You can use a negative ignore clauses, e.g.: