.gitignore for Supabase
5 ignore rules for Supabase, ready to copy into your repository.
Open source Postgres backend platform
The complete .gitignore for Supabase
# Generated by LFGitignore - https://lfgitignore.com
# Created: 2026-09-17 18:11:07 UTC
# Technologies: Supabase
### Supabase ###
# Supabase CLI local branch state
supabase/.branches
# Supabase CLI temporary files
supabase/.temp
supabase/.env.keys
supabase/.env.local
supabase/.env.*.local
What these Supabase rules actually ignore
Every pattern below, and why it belongs in your .gitignore.
Supabase
| Pattern | What it ignores |
|---|---|
supabase/.branches |
Supabase CLI local branch state |
supabase/.temp |
Supabase CLI temporary files |
Dotenvx
| Pattern | What it ignores |
|---|---|
supabase/.env.keys |
Dotenvx |
supabase/.env.local |
Dotenvx |
supabase/.env.*.local |
Dotenvx |
How to use this .gitignore for Supabase
- Copy the Supabase rules above, or download the file directly.
- Create a file named .gitignore at the root of your Git repository and paste the rules into it.
- If some of those files are already tracked, run git rm -r --cached . then commit again — Git only applies ignore rules to untracked files.
- Commit the .gitignore so everyone on the team shares the same rules.