.gitignore for Phoenix
8 ignore rules for Phoenix, ready to copy into your repository.
Web framework for Elixir
The complete .gitignore for Phoenix
# Generated by LFGitignore - https://lfgitignore.com
# Created: 2026-06-17 22:16:32 UTC
# Technologies: Phoenix
### Phoenix ###
/tmp
/node_modules
/assets/node_modules
/priv/static/
/installer/_build
/installer/tmp
/installer/doc
/installer/deps
What these Phoenix rules actually ignore
Every pattern below, and why it belongs in your .gitignore.
Temporary files
| Pattern | What it ignores |
|---|---|
/tmp |
Temporary files |
Static artifacts
| Pattern | What it ignores |
|---|---|
/node_modules |
Static artifacts |
/assets/node_modules |
Static artifacts |
/priv/static/ |
Since we are building assets from web/static, we ignore priv/static. You may want to comment this depending on your deployment strategy. |
Installer-related files
| Pattern | What it ignores |
|---|---|
/installer/_build |
Installer-related files |
/installer/tmp |
Installer-related files |
/installer/doc |
Installer-related files |
/installer/deps |
Installer-related files |
How to use this .gitignore for Phoenix
- Copy the Phoenix 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.