I have a problem in my .gitignore. I want it to just ignore the 'vendor/' directory, but it is ignoring all directories with that name.
Below is my .gitignore:
.idea/
bin/
vendor/
composer.lock
composer.phar
Below is the result of my 'git status':
Changes not staged for commit:
(use "git add <file> ..." to update what will be submitted)
(use "git checkout - <file> ..." to discard changes in working directory)
modified: .gitignore
Not monitored files:
(use "git add <file> ..." to include what will be submitted)
src/vendor/
tests/src/
vendor/
It is also ignoring 'src/vendor', I do not want that to happen, I want it to ignore 'vendor/'