IDEA 集成 Git

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文件所在的地址)

 

posted @ 2022-10-25 22:56  93丶Fss  阅读(21)  评论(0)    收藏  举报