.gitignore paths didn't have a leading
/, which meant that they were matching in any subdirectory.
composer.phar will match any file with this name, wherever it is.
/composer.phar will only match a file that is put at the root of the repository.
Please review the changes, I have also removed 2 duplicates.
PS: split diff is much better to read this PR
LGTM :+1: Thanks!