github/gitignore · Global/JetBrains.gitignore

JetBrains .gitignore Template Explained

Why JetBrains.gitignore ignores only personal settings and sensitive files in the .idea folder of IntelliJ, PyCharm, WebStorm and others, and how that differs from ignoring all of .idea.

Open in generator Open with Java, Python, Go, macOS

JetBrains.gitignore deals with the .idea folder shared by IntelliJ IDEA, PyCharm, WebStorm, GoLand, PhpStorm, Rider, CLion and Android Studio. The template does not exclude all of .idea; it blocks only personal state, sensitive information and auto-generated files.

JetBrains' official guidance also recommends sharing settings that help the team, such as code style, run configurations and inspection profiles, while excluding personal files such as workspace.xml.

Rules explained

PatternWhat it ignores and why
.idea/**/workspace.xml.idea/**/tasks.xml.idea/**/usage.statistics.xml.idea/**/dictionaries.idea/**/shelfPersonal work stateOpen files, cursor positions, task history, personal dictionaries and shelved changes. They differ per person and change often.
.idea/**/dataSources/.idea/**/dataSources.local.xml.idea/**/sqlDataSources.xml.idea/**/dynamic.xml.idea/**/dbnavigator.xmlDatabase connectionsConnection information and schema caches of the database tools. Local connection settings include personal information such as user names.
.idea/**/gradle.xml.idea/**/librariesBuild tool sync resultsSettings and library lists the IDE recreates when importing Gradle or Maven projects.
out/*.iws.idea_modules/cmake-build-*/IDE output and legacy formatsIntelliJ compiler output, workspace files of the old file-based project format, and CLion's CMake build folders.
atlassian-ide-plugin.xml.idea/sonarlint/com_crashlytics_export_strings.xmlcrashlytics.propertiesfabric.propertiesPlugin filesSettings and caches created by the JIRA, SonarLint and Crashlytics plugins.
.idea/httpRequestshttp-client.private.env.jsonHTTP client secretsRequest history of the built-in HTTP client and the private environment file for tokens and passwords. Put public values in http-client.env.json and commit it.
.idea/caches/build_file_checksums.ser.idea/**/contentModel.xml.idea/**/aws.xmlCachesThe Android Studio build file checksum cache, auto-generated models and personal AWS Toolkit settings.

Practical notes

Original template

JetBrains.gitignore35 rules
# 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

Templates from github/gitignore/Global/JetBrains.gitignore @356fd7b (2026-09-11) · CC0-1.0

Often used together

More template explanations