在使用PhpStorm IDE开发Symfony2项目时,我将一些文件添加到了git忽略列表中。但是一个文件即使被添加到了git忽略列表中仍然一直出现。我尝试了多次,但它总是在那里。
任何想法为什么git不会像我在gitignore中指定的那样忽略整个目录?
.gitignore
文件:/app/config/parameters.yml
/bin/
/build/
/composer.phar
/vendor/
/web/bundles/
/app/bootstrap.php.cache
/app/cache/*
!app/cache/.gitkeep
/app/config/parameters.yml
/app/logs/*
!app/logs/.gitkeep
/app/phpunit.xml
#IDE metadata
**.idea/**
#Bash files
run.sh
而且正是Git无法忽略的.idea
文件夹/文件:
On branch develop
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: .idea/workspace.xml
no changes added to commit (use "git add" and/or "git commit -a")
任何想法为什么git不会像我在gitignore中指定的那样忽略整个目录?