From the docs for Git Ignore
A leading slash matches the beginning of the pathname. For example,
/*.cmatchescat-file.cbut notmozilla-sha1/sha1.c.
Try changing vendor/ to /vendor/
From the docs for Git Ignore
A leading slash matches the beginning of the pathname. For example,
/*.cmatchescat-file.cbut notmozilla-sha1/sha1.c.
Try changing vendor/ to /vendor/