Installing opam package from git

Lets say I want to install an opam package from git because its not published on the opam registry.

https://github.com/jhrdina/ocaml-diff for example.

How would I go about doing that?

Thank you.

opam pin add https://github.com/jhrdina/ocaml-diff.git

3 Likes