DEV Community

Cover image for .gitignore for an OCaml project
Stefan Alfbo
Stefan Alfbo

Posted on

.gitignore for an OCaml project

As a newcomer to the language OCaml I would like to know how a typical (or initial) git ignore file should look like.

I only found one resource, OCamlverse, that mention what to ignore in an OCaml project.

The summary is that we want to ignore following directories in the .gitignore-file.

# Ignore the artifacts from building the project
_build/
# Ignore the _opam directory which is acts as
# a cache for the opam
_opam/
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more