git log <commitA>..<commitB>
This command displays the commit logs between commitA and commitB. The commit logs include information such as the commit hashes, author, date, and commit message. This allows you to see the changes made in that range of commits.
You can specify the commit range using commit hashes, branch names, or tags. For example, you can use git log abc123..def456
to show the commit logs between commit abc123
and def456
.
There are additional flags you can use to customize the output of git log
. For example, you can use --oneline
to show each commit on a single line, --author
followed by a name or email to filter by author, and --since
or --until
followed by a date to filter by time range.
You can also use the --pretty
flag followed by a formatting option to specify the format of the commit logs. For example, --pretty=format:'%h %an %s'
displays the commit hash, author name, and subject.
Note: The commit range specified by commitA
and commitB
includes commitA
but excludes commitB
."
git log af156ff..32509d0