.gitignore for devenv

5 ignore rules for devenv, ready to copy into your repository.

Fast, declarative, reproducible developer environments using Nix

The complete .gitignore for devenv

# Generated by LFGitignore - https://lfgitignore.com
# Created: 2026-09-17 18:11:07 UTC
# Technologies: devenv

### devenv ###
# devenv state, profile and generated files
.devenv*
# Personal devenv overrides (Nix)
devenv.local.nix
# Personal devenv overrides (YAML)
devenv.local.yaml
.direnv
.pre-commit-config.yaml

What these devenv rules actually ignore

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

Devenv

Pattern What it ignores
.devenv* devenv state, profile and generated files
devenv.local.nix Personal devenv overrides (Nix)
devenv.local.yaml Personal devenv overrides (YAML)

Direnv

Pattern What it ignores
.direnv Direnv

Pre-commit hooks generated by git-hooks

Pattern What it ignores
.pre-commit-config.yaml Pre-commit hooks generated by git-hooks

How to use this .gitignore for devenv

  1. Copy the devenv 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 Tool .gitignore templates

See every Tool template