1 配置 Git 忽略文件
1)创建忽略规则文件 git.ignore
# Compiled class file *.class
# Log file *.log
# BlueJ files *.ctxt
# Mobile Tools for Java (J2ME) .mtj.tmp/
# Package Files # *.jar *.war *.nar *.ear *.zip *.tar.gz *.rar
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml hs_err_pid*
.classpath .project .settings target .idea *.iml
2)在.gitconfig 文件中引用忽略配置文件(此文件在 Windows 的家目录中)
[core] excludesfile = (git.ignore文件所在的地址)
标签:集成,文件,Git,IDEA,git,file,class From: https://www.cnblogs.com/ai377377/p/16826723.html