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:
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)
Not monitored files:
(use "git add <file> ..." to include what will be submitted)
From the docs for Git Ignore
A leading slash matches the beginning of the pathname. For example,