language19 active rulesVerified 2026-09-30
O Caml .gitignore Template
Standard O Caml gitignore template from upstream github/gitignore collection. Generated and merged deterministically with upstream GitHub repository patterns to keep your repository clean of package directories, temporary build artifacts, and local environment files.
Interactive Stack Generator
Open in Full Generator/
Search for templates
Quick add:
Selected1
O Caml
Selected Templates (1)
O Caml
language
Standard O Caml gitignore template from upstream github/gitignore collection
#ocaml
.gitignore
### O Caml ###*.annot*.cmo*.cma*.cmi*.a*.o*.cmx*.cmxs*.cmxa # Files containing detailed information about the compilation (generated# by `ocamlc`/`ocamlopt` when invoked using the option `-bin-annot`).# These files are typically useful for code inspection tools# (e.g. Merlin).*.cmt*.cmti # ocamlbuild and Dune default working directory_build/ # ocamlbuild targets*.byte*.native # oasis generated filessetup.datasetup.log # Merlin configuring file for Vim and Emacs.merlin # Dune generated files*.install # Local OPAM switch_opam/ 19 rules1 template38 linesUTF-8LF
Deterministic
Raw O Caml .gitignore
Crawlable upstream source templateocaml.gitignore37 linesUTF-8
*.annot*.cmo*.cma*.cmi*.a*.o*.cmx*.cmxs*.cmxa # Files containing detailed information about the compilation (generated# by `ocamlc`/`ocamlopt` when invoked using the option `-bin-annot`).# These files are typically useful for code inspection tools# (e.g. Merlin).*.cmt*.cmti # ocamlbuild and Dune default working directory_build/ # ocamlbuild targets*.byte*.native # oasis generated filessetup.datasetup.log # Merlin configuring file for Vim and Emacs.merlin # Dune generated files*.install # Local OPAM switch_opam/ Key Pattern Breakdown
Build & Compilation Artifacts
Ignores compiled binaries, intermediate object files, and build output directories generated during development.
*.annot*.a*.o_build/
Cache & Temporary Files
Ignores compiler caches, test runner coverage data, and transient temporary scratch files.
setup.log
Source & Verification
Source:: GitHub gitignore (main)
License:: CC0-1.0
Place this file in the root directory of your project as .gitignore. Changes take effect on newly added or untracked files.