JetBrains IDEs .gitignore Template
JetBrains IDE project configuration (.idea/) and runtime caches. Generated and merged deterministically with upstream GitHub repository patterns to keep your repository clean of package directories, temporary build artifacts, and local environment files.
Interactive Stack Generator
Open in Full GeneratorJetBrains IDE project configuration (.idea/) and runtime caches
### JetBrains IDEs #### Covers JetBrains IDEs: IntelliJ, GoLand, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 # User-specific stuff.idea/**/workspace.xml.idea/**/tasks.xml.idea/**/usage.statistics.xml.idea/**/dictionaries.idea/**/shelf # AWS User-specific.idea/**/aws.xml # Generated files.idea/**/contentModel.xml # Sensitive or high-churn files.idea/**/dataSources/.idea/**/dataSources.ids.idea/**/dataSources.local.xml.idea/**/sqlDataSources.xml.idea/**/dynamic.xml.idea/**/uiDesigner.xml.idea/**/dbnavigator.xml # Gradle.idea/**/gradle.xml.idea/**/libraries # Gradle and Maven with auto-import# When using Gradle or Maven with auto-import, you should exclude module files,# since they will be recreated, and may cause churn. Uncomment if using# auto-import.# .idea/artifacts# .idea/compiler.xml# .idea/jarRepositories.xml# .idea/modules.xml# .idea/*.iml# .idea/modules# *.iml# *.ipr # CMakecmake-build-*/ # Mongo Explorer plugin.idea/**/mongoSettings.xml # File-based project format*.iws # IntelliJout/ # mpeltonen/sbt-idea plugin.idea_modules/ # JIRA pluginatlassian-ide-plugin.xml # Cursive Clojure plugin.idea/replstate.xml # SonarLint plugin.idea/sonarlint/# see https://community.sonarsource.com/t/is-the-file-idea-idea-idea-sonarlint-xml-intended-to-be-under-source-control/121119.idea/sonarlint.xml # Crashlytics plugin (for Android Studio and IntelliJ)com_crashlytics_export_strings.xmlcrashlytics.propertiescrashlytics-build.propertiesfabric.properties # Editor-based HTTP Client.idea/httpRequestshttp-client.private.env.json # Android studio 3.1+ serialized cache file.idea/caches/build_file_checksums.ser # Apifox Helper cache.idea/.cache/.Apifox_Helper.idea/ApifoxUploaderProjectSetting.xml # Github Copilot persisted session migrations, see: https://github.com/microsoft/copilot-intellij-feedback/issues/712#issuecomment-3322062215.idea/**/copilot.data.migration.*.xml Raw JetBrains IDEs .gitignore
Crawlable upstream source template# Covers JetBrains IDEs: IntelliJ, GoLand, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 # User-specific stuff.idea/**/workspace.xml.idea/**/tasks.xml.idea/**/usage.statistics.xml.idea/**/dictionaries.idea/**/shelf # AWS User-specific.idea/**/aws.xml # Generated files.idea/**/contentModel.xml # Sensitive or high-churn files.idea/**/dataSources/.idea/**/dataSources.ids.idea/**/dataSources.local.xml.idea/**/sqlDataSources.xml.idea/**/dynamic.xml.idea/**/uiDesigner.xml.idea/**/dbnavigator.xml # Gradle.idea/**/gradle.xml.idea/**/libraries # Gradle and Maven with auto-import# When using Gradle or Maven with auto-import, you should exclude module files,# since they will be recreated, and may cause churn. Uncomment if using# auto-import.# .idea/artifacts# .idea/compiler.xml# .idea/jarRepositories.xml# .idea/modules.xml# .idea/*.iml# .idea/modules# *.iml# *.ipr # CMakecmake-build-*/ # Mongo Explorer plugin.idea/**/mongoSettings.xml # File-based project format*.iws # IntelliJout/ # mpeltonen/sbt-idea plugin.idea_modules/ # JIRA pluginatlassian-ide-plugin.xml # Cursive Clojure plugin.idea/replstate.xml # SonarLint plugin.idea/sonarlint/# see https://community.sonarsource.com/t/is-the-file-idea-idea-idea-sonarlint-xml-intended-to-be-under-source-control/121119.idea/sonarlint.xml # Crashlytics plugin (for Android Studio and IntelliJ)com_crashlytics_export_strings.xmlcrashlytics.propertiescrashlytics-build.propertiesfabric.properties # Editor-based HTTP Client.idea/httpRequestshttp-client.private.env.json # Android studio 3.1+ serialized cache file.idea/caches/build_file_checksums.ser # Apifox Helper cache.idea/.cache/.Apifox_Helper.idea/ApifoxUploaderProjectSetting.xml # Github Copilot persisted session migrations, see: https://github.com/microsoft/copilot-intellij-feedback/issues/712#issuecomment-3322062215.idea/**/copilot.data.migration.*.xml Key Pattern Breakdown
Build & Compilation Artifacts
Ignores compiled binaries, intermediate object files, and build output directories generated during development.
Environment & Secrets
Prevents leaking sensitive local credentials, API keys, database URLs, and environment configuration files.
Cache & Temporary Files
Ignores compiler caches, test runner coverage data, and transient temporary scratch files.
System & Editor Files
Filters out operating system metadata and workstation-specific editor configuration folders.
Source & Verification
Place this file in the root directory of your project as .gitignore. Changes take effect on newly added or untracked files.