When a pull request is squash-merged, its commits collapse into one, and every line is credited to a single author, whoever else contributed to it. git-credit walks the history of a repository, detects squash merges, and splits each one among the authors of the pull request’s commits, in proportion to the lines each of them changed. Generated or vendored files can be excluded from the count.

Written in Rust, it is distributed through crates.io, a Homebrew tap and pre-built binaries for Linux, macOS and Windows.