1. 新建.gitignore文件 2. 复制粘贴到文件中保存即可 */target *.iml /.idea *.class target/ .project .settings/ .classpath