.gitignore for Mercury
13 ignore rules for Mercury, ready to copy into your repository.
Logic/functional programming language
The complete .gitignore for Mercury
# Generated by LFGitignore - https://lfgitignore.com
# Created: 2026-08-05 01:33:20 UTC
# Technologies: Mercury
### Mercury ###
Mercury/
Mercury.modules
# Static library
*.a
*.mh
*.err
# Windows executable
*.exe
*.init
# Dynamic link library
*.dll
# macOS dynamic library
*.dylib
*.beams
# shared libraries
*.so
*.c_date
# dependency files
*.d
What these Mercury rules actually ignore
Every pattern below, and why it belongs in your .gitignore.
General
| Pattern | What it ignores |
|---|---|
Mercury/ |
General |
Mercury.modules |
General |
*.a |
Static library |
*.mh |
General |
*.err |
General |
*.exe |
Windows executable |
*.init |
General |
*.dll |
Dynamic link library |
*.dylib |
macOS dynamic library |
*.beams |
General |
*.so |
shared libraries |
*.c_date |
General |
*.d |
dependency files |
How to use this .gitignore for Mercury
- Copy the Mercury 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.