.gitignore for Elixir

10 ignore rules for Elixir, ready to copy into your repository.

Dynamic, functional language for the Erlang VM

The complete .gitignore for Elixir

# Generated by LFGitignore - https://lfgitignore.com
# Created: 2026-08-05 00:24:55 UTC
# Technologies: Elixir

### Elixir ###
/_build
/cover
/deps
/doc
/.fetch
erl_crash.dump
*.ez
*.beam
/config/*.secret.exs
.elixir_ls/

What these Elixir rules actually ignore

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

General

Pattern What it ignores
/_build General
/cover General
/deps General
/doc General
/.fetch General
erl_crash.dump General
*.ez General
*.beam General
/config/*.secret.exs General
.elixir_ls/ General

How to use this .gitignore for Elixir

  1. Copy the Elixir 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 Language .gitignore templates

See every Language template