You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Android Studio \ IDE files
.idea/
*.iml
#Include IDE copyright and code style
!.idea/copyright
!/.idea/codeStyles
# Gradle files
#(for multi-module projects)
**/build/
.gradle/
# Log/Crash files*.log
# Local configuration files*.properties
# Configurations files
#(only for open-source projects)
*.json
# Keystores*.jks
*.keystore
#Screenshots
captures/
#NDK generated files
obj/
.cxx/
.externalNativeBuild
# Mac OS files
.DS_Store
Tips
Pattern
Description
Example
*.ext
Matches all files with a given extension
*.iml
file.txt
Ignores an exact file
api.properties
folder/
Ignores a specific directory
build/
.folder/
Ignores a specific hidden directory (dot → hidden)
.idea/
**/dir/
Recursive ignore for a directory
**/tmp/
!pattern
Excludes a file from being ignored
!important.txt
#
Used for notes
# todo
Folders
Category
Folder/File
Why Ignore It
🏗️ Build Outputs
build/
Generated and compiled files, reports, and outputs
⚙️ Gradle System Files
.gradle/
Contains local Gradle caches and dependency data
🧩 IDE / Android Studio
.idea/
Contains local workspace settings
🧾 Logs & Reports
*.log
Temporary build/test logs
⚙️ Native Code / NDK
.externalNativeBuild/ .cxx/
Auto-generated when building native (C/C++) code
🧭 Local Configs
*.properties
Stores SDK paths, signing keys, or API keys
🔑 Signing configurations
*.jks *.keystore
Contains signing keys
🔒 External Services configurations
*.json
Configuration files. Should stay private for open-source projects
🧪 Test Data
captures/
Contains screenshots from Android instrumented tests.
💾 OS-specific files
.DS_Store desktop.ini
Hidden OS metadata files. Mac / Windows (use one)
Not Ignore
Folder/File
Purpose
Why Commit
copyright/
Stores copyright profiles used for automatically adding headers to new files
Ensures license/copyright headers are uniform
codeStyles/
Stores IDE code style rules
Ensures everyone on the team formats code the same way
Prompt
In an Android project, is it safe to remove [CONFIG_OR_FILE_NAME] from .gitignore?
Explain briefly what it does, if it should be committed, and what could happen if I remove it.
Here’s my config file: (paste your existing config file)