Skip to content

Instantly share code, notes, and snippets.

@savelee
Created October 27, 2025 11:24
Show Gist options
  • Save savelee/a4bdf6bd839b0c820c59c648df7d35e1 to your computer and use it in GitHub Desktop.
Save savelee/a4bdf6bd839b0c820c59c648df7d35e1 to your computer and use it in GitHub Desktop.
Example of .geminiignore
# ==================================================
# GLOBAL .geminiignore
# Location: ~/.gemini/.geminiignore (Recommended)
# ==================================================
# 1. DEPENDENCIES / PACKAGES (The most important exclusion)
# Excludes Node.js and Python dependency folders globally.
/node_modules/
/venv/
/.venv/
/env/
/.env/
# 2. BUILD OUTPUTS / COMPILED ARTIFACTS
# Compiled code and distribution folders from common frameworks
/dist/
/build/
/out/
/target/
/coverage/
/temp/
/tmp/
*.min.js
*.min.css
# 3. PYTHON CACHE / ARTIFACTS
__pycache__/
*.pyc
*.egg-info/
.pytest_cache/
.mypy_cache/
.ipynb_checkpoints/ # Jupyter Notebook checkpoints
# 4. NODE.JS / FRONTEND ARTIFACTS (Angular, Next.js, etc.)
# Excludes Angular's cache and lock files (which are large and redundant)
/out-tsc/
/aot/
/ts_tmp/
package-lock.json
yarn.lock
pnpm-lock.yaml
# 5. IDE / TOOLING CACHE
# Common cache files generated by editors, package managers, and tools
/.idea/
/.vscode/
/.DS_Store
/Thumbs.db
npm-debug.log
yarn-debug.log*
.npm/
# 6. SENSITIVE / LARGE LOG FILES
# Excludes secret files and large log files which bloat context
.env*
*.key
*.pem
*.pfx
*.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment