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

Open in Full Generator
Search for templates
Quick add:
Selected1
Expo
Selected Templates (1)
.gitignore
### 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*
14 rules1 template41 lines
Deterministic

Raw Expo .gitignore

Crawlable upstream source template
javascript-expo.gitignore40 lines
# .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 & Packages

Excludes installed package directories and third-party vendor files that should be restored via package managers.

node_modules/

Environment & Secrets

Prevents leaking sensitive local credentials, API keys, database URLs, and environment configuration files.

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

Cache & Temporary Files

Ignores compiler caches, test runner coverage data, and transient temporary scratch files.

*.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.