.gitignore for Gemini CLI

2 ignore rules for Gemini CLI, ready to copy into your repository.

Google's open-source AI agent for the terminal

The complete .gitignore for Gemini CLI

# Generated by LFGitignore - https://lfgitignore.com
# Created: 2026-09-17 18:11:13 UTC
# Technologies: Gemini CLI

### Gemini CLI ###
# Gemini CLI API keys and environment variables
.gemini/.env
# Gemini CLI local telemetry output
.gemini/telemetry.log

What these Gemini CLI rules actually ignore

Every pattern below, and why it belongs in your .gitignore.

API keys and environment variables

Pattern What it ignores
.gemini/.env Gemini CLI API keys and environment variables

Local telemetry output

Pattern What it ignores
.gemini/telemetry.log Gemini CLI local telemetry output

How to use this .gitignore for Gemini CLI

  1. Copy the Gemini CLI rules above, or download the file directly.
  2. Create a file named .gitignore at the root of your Git repository and paste the rules into it.
  3. If some of those files are already tracked, run git rm -r --cached . then commit again — Git only applies ignore rules to untracked files.
  4. Commit the .gitignore so everyone on the team shares the same rules.

Other AI Tooling .gitignore templates

See every AI Tooling template