idea设置中,编辑器→文件类型→.gitignore末尾 添加以下内容: *.iml;*.idea;*.gitignore;*.sh;*.classpath;*.project;*.settings;target;