Back to Git Cliff

Build from source

website/docs/installation/build-from-source.md

2.13.1748 B
Original Source

Build from source

Prerequisites

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

Instructions

  1. Clone the repository.
bash
git clone https://github.com/orhun/git-cliff
cd git-cliff/
  1. Build.
bash
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:

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

Manpage

To generate a manpage in target:

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