LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

git-whatchanged

Show commit logs with file-level diff information

TLDR

Show commit logs with diffs
$ git whatchanged
copy
Show for specific file
$ git whatchanged [file]
copy
Show with stat
$ git whatchanged --stat
copy
Limit output
$ git whatchanged -n [10]
copy
Show since date
$ git whatchanged --since="[2 weeks ago]"
copy

SYNOPSIS

git whatchanged [options] [paths...]

DESCRIPTION

git whatchanged shows logs with the difference each commit introduces. It is essentially equivalent to `git log --raw --no-merges`, making it easier to see which files were affected by each commit.

PARAMETERS

-n num

Limit number of commits.
--stat
Show diffstat.
--since date
Commits since date.
--until date
Commits until date.
-p
Show patch.

INSTALL

sudo apt install git
copy
sudo dnf install git
copy
sudo pacman -S git
copy
sudo apk add git
copy
sudo zypper install git
copy
brew install git
copy
nix profile install nixpkgs#git
copy

CAVEATS

This command is deprecated and scheduled for removal in a future Git release. Use `git log --raw` instead. When limiting output to a path, add `--` before the path to avoid ambiguity with branch names, e.g. `git whatchanged -- [file]`.

SEE ALSO

git-log(1), git-diff(1)

RESOURCES

Copied to clipboard
Kai