原因是:git 配置了本地的gitignore的文件

问题解决
首先我们可以通过命令查看全局配置中是否有调用外部(非工程下)的gitignore文件
git config -l
例如core.excluedesfile=这一项

idea 对于新增的文件使用git不能add

 

相关文章: