I have got following problem:
I installed some dependencies (symfony) into my project using composer install
.
BUT when I'm trying to commit that, It can't see any files.
I've searched every .gitignore file, but I think this is not caused by ignoring these files - I've checked it with SourceTree and these files are not even in "ignored" or "all", they simply don't exist in git at all.
So, I've tried git add vendor/symfony/*
, git add vendor/symfony/*/*
etc., but it just added some folders into commit, and not files.
When I move entire symfony folder, nothing changes. Same if I rename something. But, if I make some file in symfony folder, which contains just other folder (no files), it appears. But - if I make file next to another files in symfony, it won't appear.
I've looked into /.git/info/exclude, but there is also nothing suspicious.
Platform: Windows 7 x64 git 1.8.4
Is there something about composer I don't know? Or am I missing something?
Thanks for answers.
EDIT:
Well, it is kinda strange, but I made it work.
First I tried to add single file with its full path (with git add
). CMD throwed error, it is unable to add, because this file is in submodule.
According this advice I've tried git rm --cached -r vendor/symfony
, and it probably cleared some references.
Then I could call git add
again, BUT I had to use path to files (there was many embed folders) like git add vendor\symfony\browser-kit\Symfony\Component\BrowserKit\*
.
I actually don't know what happened, but after I made .bat file and call this on all files there, I can commit it.
Thanks for your time, help and advices. :)