.gitignore for Julia
13 ignore rules for Julia, ready to copy into your repository.
High-performance dynamic programming language
The complete .gitignore for Julia
# Generated by LFGitignore - https://lfgitignore.com
# Created: 2026-08-05 01:29:56 UTC
# Technologies: Julia
### Julia ###
*.jl.cov
*.jl.*.cov
*.jl.mem
deps/deps.jl
deps/build.log
deps/downloads/
deps/usr/
deps/src/
docs/build/
docs/site/
Manifest*.toml
LocalPreferences.toml
JuliaLocalPreferences.toml
What these Julia rules actually ignore
Every pattern below, and why it belongs in your .gitignore.
Files generated by invoking Julia with --code-coverage
| Pattern | What it ignores |
|---|---|
*.jl.cov |
Files generated by invoking Julia with --code-coverage |
*.jl.*.cov |
Files generated by invoking Julia with --code-coverage |
Files generated by invoking Julia with --track-allocation
| Pattern | What it ignores |
|---|---|
*.jl.mem |
Files generated by invoking Julia with --track-allocation |
They contain absolute paths specific to the host computer, and so should not be committed
| Pattern | What it ignores |
|---|---|
deps/deps.jl |
They contain absolute paths specific to the host computer, and so should not be committed |
deps/build.log |
They contain absolute paths specific to the host computer, and so should not be committed |
deps/downloads/ |
They contain absolute paths specific to the host computer, and so should not be committed |
deps/usr/ |
They contain absolute paths specific to the host computer, and so should not be committed |
deps/src/ |
They contain absolute paths specific to the host computer, and so should not be committed |
Build artifacts for creating documentation generated by the Documenter package
| Pattern | What it ignores |
|---|---|
docs/build/ |
Build artifacts for creating documentation generated by the Documenter package |
docs/site/ |
Build artifacts for creating documentation generated by the Documenter package |
Manifest*.toml |
File generated by Pkg, the package manager, based on a corresponding Project.toml It records a fixed state of all packages used by the project. As such, it should not be committed for packages, but should be committed for applications that require a static environment. |
File generated by the Preferences package to store local preferences
| Pattern | What it ignores |
|---|---|
LocalPreferences.toml |
File generated by the Preferences package to store local preferences |
JuliaLocalPreferences.toml |
File generated by the Preferences package to store local preferences |
How to use this .gitignore for Julia
- Copy the Julia 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.