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)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay