$ git log --stat --since 2021-04-20 --until 2022-02-01 --author pan --branches=*feature/v3.3* Source/Tools/
--stat[=<width>[,<name-width>[,<count>]]]
Generate a diffstat. By default, as much space as necessary will be used for the filename part, and the rest for the graph part. Maximum width defaults to terminal width, or 80 columns if not connected to a terminal, and can be overridden by <width>
. The width of the filename part can be limited by giving another width <name-width>
after a comma. The width of the graph part can be limited by using --stat-graph-width=<width>
(affects all commands generating a stat graph) or by setting diff.statGraphWidth=<width>
(does not affect git format-patch
). By giving a third parameter <count>
, you can limit the output to the first <count>
lines, followed by ...
if there are more.
These parameters can also be set individually with --stat-width=<width>
, --stat-name-width=<name-width>
and --stat-count=<count>
.
--branches[=<pattern>]
Pretend as if all the refs in refs/heads
are listed on the command line as <commit>. If <pattern> is given, limit branches to ones matching given shell glob. If pattern lacks ?, *, or [, /* at the end is implied.
git log --branches --not --remotes=origin
Shows all commits that are in any of local branches but not in any of remote-tracking branches for origin (what you have that origin doesn’t).
--author=<pattern>--committer=<pattern>
Limit the commits output to ones with author/committer header lines that match the specified pattern (regular expression). With more than one --author=<pattern>
, commits whose author matches any of the given patterns are chosen (similarly for multiple --committer=<pattern>
).
--since=<date>--after=<date>
Show commits more recent than a specific date.
--until=<date>
git log --since="2 weeks ago" -- gitk
Show the changes during the last two weeks to the file gitk. The --
is necessary to avoid confusion with the branch named gitk
git log v2.6.12.. include/scsi drivers/scsi
Show all commits since version v2.6.12 that changed any file in the include/scsi
or drivers/scsi
subdirectories