Java最全配置.gitignore文件忽略规则

Posted 一个抓手

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Java最全配置.gitignore文件忽略规则相关的知识,希望对你有一定的参考价值。

# 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

# Eclipse & IntelliJ IDEA
.classpath
.settings/
.idea
.idea/
*.iws
*.iml
*.ipr
.settings
.project

# Maven
target/
pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup
pom.xml.next
release.properties
dependency-reduced-pom.xml
buildNumber.properties
.mvn/timing.properties
.mvn/wrapper/maven-wrapper.jar

# Gradle
.gradle
.gradle/
build/
**/build/
bin/
!src/**/build/
gradle-app.setting
!gradle-wrapper.jar
.gradletasknamecache
gradle/wrapper/gradle-wrapper.properties

# VS Code
.vscode/

# STS
.apt_generated
.factorypath
.springBeans
.sts4-cache

# NetBeans
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
!**/src/main/**/build/
!**/src/test/**/build/

以上是关于Java最全配置.gitignore文件忽略规则的主要内容,如果未能解决你的问题,请参考以下文章

git 配置忽略文件规则

Git忽略规则(.gitignore配置)不生效原因和解决

idea git提交文件忽略(.gitignore)

Git忽略提交规则 - .gitignore配置运维总结

Git忽略提交规则 - .gitignore配置运维总结

[转]Git忽略提交规则 - .gitignore配置运维总结