IntelliJ IDEA git commit 时忽略文件设置

在使用idea git 提交代码是,设置忽略 .git .iml 文件以及 target 文件夹

Windows:File - Settings - Editor - File Types

Mac:Preferences.. - Editor - File Types

 

IntelliJ IDEA git commit 时忽略文件设置

在 Ignore files and folders 里添加上想要忽略不提交的文件

.iml;.idea;target;

.iml 结尾的文件

.idea 结尾的文件

target 文件夹