Skip to main content

Build from source

Prerequisites

  • Rust (nightly)
    • The minimum supported Rust version is 1.75.0.
  • zlib
  • libgit2

Instructions

  1. Clone the repository.
git clone https://github.com/orhun/git-cliff
cd git-cliff/
  1. Build.
CARGO_TARGET_DIR=target cargo build --release

Binary will be located at target/release/git-cliff.

Also, see the available feature flags.

Shell completions

To generate completions in target:

OUT_DIR=target target/release/git-cliff-completions

Manpage

To generate a manpage in target:

OUT_DIR=target target/release/git-cliff-mangen