Make "cd" to needed directory and execute "git add -f <filename>, after that your IDE will see that file. Actual for image files, because it cannot modify inside Idea/Phpstorm.
It can answer that will be conflicts with some packages, and need to remove it, but suddenly that conflict was solved by it own. After "php5-fpm -m" command you should get pdo_mysql.