是否需要跟踪这些文件?
new file: .idea/compiler.xml
new file: .idea/dataSources/d00e28b9-8967-4490-968b-773416d579a0.xml
new file: .idea/dataSources/d00e28b9-8967-4490-968b-773416d579a0/storage_v2/_src_/database/matt.FAczAA.meta
new file: .idea/dataSources/d00e28b9-8967-4490-968b-773416d579a0/storage_v2/_src_/database/matt.FAczAA/schema/public.abK9xQ.meta
new file: .idea/encodings.xml
new file: .idea/misc.xml
new file: RestService.iml
我正在使用我在stackoverflow上找到的.gitignore文件进行创意项目。
# Created by https://www.gitignore.io/api/intellij
### Intellij ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
# User-specific stuff:
.idea/workspace.xml
.idea/tasks.xml
.idea/dictionaries
.idea/vcs.xml
.idea/jsLibraryMappings.xml
# Sensitive or high-churn files:
.idea/dataSources.ids
.idea/dataSources.xml
.idea/dataSources.local.xml
.idea/sqlDataSources.xml
.idea/dynamic.xml
.idea/uiDesigner.xml
# Gradle:
.idea/gradle.xml
.idea/libraries
# Mongo Explorer plugin:
.idea/mongoSettings.xml
## File-based project format:
*.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
fabric.properties
### Intellij Patch ###
# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721
# *.iml
# modules.xml
# Mac
.DS_Store
# Maven
log/
target/
我更新了它以摆脱这些文件:
.idea/
## File-based project format:
*.iws
## Plugin-specific files:
# IntelliJ
/out/
# mpeltonen/sbt-idea plugin
.idea_modules/
# JIRA plugin
atlassian-ide-plugin.xml
*.iml
modules.xml
答案 0 :(得分:0)
不,你可以将它们放在.gitignore下。
.idea文件夹与IDE相关,并在构思工具中存储临时信息,例如已打开的窗口,但不需要这些信息。
你的gitignore对我来说似乎很好