Skip to content
framework14 active rulesVerified 2026-09-30

Expo .gitignore Template

Expo temporary files, local build archives, and web output. 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

Preconfigured with Expo
Search for templates
Quick add:
Selected1
Expo
Selected Templates (1)
.gitignore
14 rules
### Expo ###
# .gitignore template for Expo
# website: https://expo.dev/
# docs: https://docs.expo.dev/workflow/expo-cli/
#
# Rationale:
# node_modules/ is always ignored
# .expo/, .expo-shared/ are Expo’s local state and project-settings cache (see docs)
#  Metro caches/logs are *.expo, *.tunnel, *.cache, *.tmp, *.log
# Node modules
node_modules/
# Expo local state and caches
# runtime state (Metro bundler, dev-client data, tunnels)
.expo/
# shared project settings (app.json edits, etc.)
.expo-shared/
# Metro bundler caches/logs
# generic Expo temp files
*.expo
# Expo DevTools tunnels
*.tunnel
# Metro cache folder
*.cache
# temp files created during bundling
*.tmp
# build or Metro logs
*.log
# Environment variables
.env
.env.local
.env.*.local
# Package manager logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
41 lines•UTF-8
Deterministic

Raw Expo .gitignore

Crawlable upstream source template
javascript-expo.gitignore•40 lines•UTF-8
# .gitignore template for Expo
# website: https://expo.dev/
# docs: https://docs.expo.dev/workflow/expo-cli/
#
# Rationale:
# node_modules/ is always ignored
# .expo/, .expo-shared/ are Expo’s local state and project-settings cache (see docs)
#  Metro caches/logs are *.expo, *.tunnel, *.cache, *.tmp, *.log
# Node modules
node_modules/
# Expo local state and caches
# runtime state (Metro bundler, dev-client data, tunnels)
.expo/
# shared project settings (app.json edits, etc.)
.expo-shared/
# Metro bundler caches/logs
# generic Expo temp files
*.expo
# Expo DevTools tunnels
*.tunnel
# Metro cache folder
*.cache
# temp files created during bundling
*.tmp
# build or Metro logs
*.log
# Environment variables
.env
.env.local
.env.*.local
# Package manager logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*

Key Pattern Breakdown

Dependencies & Package Registries

External libraries and package manager directories installed locally rather than stored in version control.

node_modules/

Environment Secrets & Local Overrides

Local environment configurations, secrets, and credentials intended to protect developer-specific settings from exposure.

.env.env.local.env.*.local

Execution Caches & Runtime Logs

Diagnostic logs, runtime metadata, test coverage reports, and incremental compiler caches that cause noisy repository diffs.

*.cache*.tmp*.lognpm-debug.log*yarn-debug.log*yarn-error.log*

Source & Verification

License: CC0-1.0

Place this file in the root directory of your project as .gitignore. Changes take effect on newly added or untracked files.