LinuxCommandLibrary

git-fame

Generate contribution statistics by author

TLDR

Show line statistics

$ git fame
copy
Include all file types
$ git fame --everything
copy
Sort by commits
$ git fame --sort=commits
copy
Exclude paths
$ git fame --exclude=[vendor/]
copy
Show specific directory
$ git fame [src/]
copy

SYNOPSIS

git fame [options] [path]

DESCRIPTION

git fame generates contribution statistics showing lines of code, commits, and files per author. It provides a comprehensive view of who contributed what to the codebase, using blame analysis to count current lines attributed to each author.
Output includes percentages for relative contribution comparison. The tool is useful for understanding code ownership patterns and team contribution distribution.

PARAMETERS

PATH

Path to analyze.
--sort FIELD
Sort by loc, commits, or files.
--exclude PATTERN
Exclude paths.
--everything
Include all file types.
--branch BRANCH
Analyze specific branch.
--help
Display help information.

CAVEATS

Blame-based counting can be slow. Binary files excluded. Last modifier gets credit.

HISTORY

git fame provides contribution analysis similar to tools like git-fame-rb and other repository statistics generators.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community