我试图排除除了那些我需要以下.gitignore
配置中的所有文件:Gitignore双星模式不起作用
*.* # Ignore all files
*~ # Ignore temp files
\#* # Ignore temp files
!.gitignore
!*.conf
!**/*.conf
然而,当我执行git status
./postgresql/9.3/warm-standby/postgresql.conf
没有显示文件。我如何解决我的.gitignore
?
的Git版本2.1.4
看一看http://stackoverflow.com/questions/9162919/whitelisting-and-subdirectories-in-git –