1.Settings→Editor→File Types 2.在下方的忽略文件和目錄(Ignore files and folders)中添加本身須要過濾的內容git
下圖爲我本身添加過濾的內容,例如:*.iml;*.idea;*.gitignore;*.sh;*.classpath;*.project;*.settings;target;ide
注意:這裏的忽略是對idea自己而言,在提交時會忽略*.iml;等文件,可是用其餘工具提交時不會忽略。工具