Basic .gitignore for elixir program

Other topics

Remarks:

Note that the /rel folder may not be needed in your .gitignore file. This is generated if you are using a release management tool such as exrm

A basic .gitignore for Elixir

/_build
/cover
/deps
erl_crash.dump
*.ez

# Common additions for various operating systems:
# MacOS
.DS_Store

# Common additions for various editors:
# JetBrains IDEA, IntelliJ, PyCharm, RubyMine etc.
.idea 

Example

### Elixir ###
/_build
/cover
/deps
erl_crash.dump
*.ez

### Erlang ###
.eunit
deps
*.beam
*.plt
ebin
rel/example_project
.concrete/DEV_MODE
.rebar

Standalone elixir application

/_build
/cover
/deps
erl_crash.dump
*.ez
/rel

Phoenix application

/_build
/db
/deps
/*.ez
erl_crash.dump
/node_modules
/priv/static/
/config/prod.secret.exs
/rel

Auto-generated .gitignore

By default, mix new <projectname> will generate a .gitignore file in the project root that is suitable for Elixir.

# The directory Mix will write compiled artifacts to.
/_build

# If you run "mix test --cover", coverage assets end up here.
/cover

# The directory Mix downloads your dependencies sources to.
/deps

# Where 3rd-party dependencies like ExDoc output generated docs.
/doc

# If the VM crashes, it generates a dump, let's ignore it too.
erl_crash.dump

# Also ignore archive artifacts (built via "mix archive.build").
*.ez

Contributors

Topic Id: 6526

Example Ids: 20925,22287,22370,22371,22519

This site is not affiliated with any of the contributors.