IDEA 創建的項目,需要搞個.gitignore文件,文件內容可以參考插件的。
-
# Created by .ignore support plugin (hsz.mobi)
-
### JetBrains template
-
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio
-
-
*.iml
-
-
## Directory-based project format:
-
.idea/
-
# if you remove the above rule, at least ignore the following:
-
-
# User-specific stuff:
-
# .idea/workspace.xml
-
# .idea/tasks.xml
-
# .idea/dictionaries
-
-
# Sensitive or high-churn files:
-
# .idea/dataSources.ids
-
# .idea/dataSources.xml
-
# .idea/sqlDataSources.xml
-
# .idea/dynamic.xml
-
# .idea/uiDesigner.xml
-
-
# Gradle:
-
# .idea/gradle.xml
-
# .idea/libraries
-
*.log
-
-
# Mongo Explorer plugin:
-
# .idea/mongoSettings.xml
-
-
## File-based project format:
-
*.ipr
-
*.iws
-
-
## Plugin-specific files:
-
-
# IntelliJ
-
/out/
-
-
# mpeltonen/sbt-idea plugin
-
.idea_modules/
-
-
# JIRA plugin
-
atlassian-ide-plugin.xml
-
-
# Crashlytics plugin (for Android Studio and IntelliJ)
-
com_crashlytics_export_strings.xml
-
crashlytics.properties
-
crashlytics-build.properties
-
### Maven template
-
target/
-
pom.xml.tag
-
pom.xml.releaseBackup
-
pom.xml.versionsBackup
-
pom.xml.next
-
release.properties
-
dependency-reduced-pom.xml
-
buildNumber.properties
-
.mvn/timing.properties
原文地址:https://blog.csdn.net/u010372981/article/details/78422687