You can use a range to do that.

git log master..

If you've checked out your my_experiment branch. This will compare where master is at to HEAD (the tip of my_experiment).

Answer from alex on Stack Overflow
🌐
Git
git-scm.com › book › en › v2 › Git-Basics-Viewing-the-Commit-History
Git - Viewing the Commit History
As you can see, this command lists each commit with its SHA-1 checksum, the author’s name and email, the date written, and the commit message. A huge number and variety of options to the git log command are available to show you exactly what you’re looking for.
🌐
Warp
warp.dev › terminus by warp › git › git commit history
View Commit History - git log, git reflog, and git show | Warp
December 1, 2023 - Each branch has a commit history. To list commits as a view of a branch's history, you can use the git log command with the branch name. git log: shows the commit history for the branch currently checked out.
People also ask

What is the difference between `git log` and `git reflog`?
`git log` shows the commit history of the current branch. `git reflog` shows every movement of `HEAD` — including commits that were reset, rebased, or are no longer reachable from any branch. It is the main recovery tool if you lose commits accidentally.
🌐
linuxize.com
linuxize.com › home › git › git log command: view commit history
git log Command: View Commit History | Linuxize
How do I find a commit by its message?
Use `git log --grep="search term"`. For case-insensitive search add `-i`. If you need to search the full commit message body as well as the subject, add `--all-match` only when combining multiple `--grep` patterns, or use `git log --grep="search term" --format=full` to inspect matching commits more closely. Use `-E` only when you need extended regular expressions in the grep pattern.
🌐
linuxize.com
linuxize.com › home › git › git log command: view commit history
git log Command: View Commit History | Linuxize
How do I show a single commit in full detail?
Use `git show `. It prints the commit metadata and the full diff. To show just the files changed without the diff, use `git show --stat `.
🌐
linuxize.com
linuxize.com › home › git › git log command: view commit history
git log Command: View Commit History | Linuxize
🌐
W3Schools
w3schools.com › GIT › git_history.asp
Git History
git log commit 09f4acd3f8836b7f6fc44ad9e012f82faf861803 (HEAD -> master) Author: w3schools-test · Date: Fri Mar 26 09:35:54 2021 +0100 Updated index.html with a new line · This command shows all commits, including author, date, and message.
🌐
DeployHQ
deployhq.com › learn git › viewing the commit history
How to View Git Commit History with git log and git show - DeployHQ
March 6, 2026 - Use git log to view commit history, filter by author or date, and format output with --oneline and --graph. Plus git show for inspecting individual...
🌐
Salesforce
trailhead.salesforce.com › learn › git and github basics › work with your history in git
Understand Your Git History and Version Control - Trailhead
On GitHub.com, you can access your project history by selecting the commit button from the code tab on your project. Locally, you can use git log. The git log command enables you to display a list of all of the commits on your current branch.
🌐
Linuxize
linuxize.com › home › git › git log command: view commit history
git log Command: View Commit History | Linuxize
March 16, 2026 - Use git show <hash>. It prints the commit metadata and the full diff. To show just the files changed without the diff, use git show --stat <hash>. git log is the primary tool for understanding a project’s history.
Find elsewhere
🌐
Graphite
graphite.com › guides › git-log
Listing Git commits with `git log` - Graphite
To display a list of commits in Git, you can use the git log command. By default, git log presents the commit history of the current branch in reverse chronological order, showing details such as commit hash, author, date, and commit message.
🌐
TOOLSQA
toolsqa.com › git › git-history
Most common commands to view Git History for Git Commits
July 7, 2021 - Git show also presents you the output in the same format as we studied in the git log tutorial. A slight difference is that the git show command shows you two things: ... The commit to which HEAD is pointing is the last commit of the last branch ...
🌐
GeeksforGeeks
geeksforgeeks.org › git › how-to-get-list-of-all-commits-in-git
How to Get List of All Commits in Git? - GeeksforGeeks
January 19, 2026 - Documentation: Generating changelogs or release notes. The git log command is the most straightforward way to list all commits. ... This command will display the commits in reverse chronological order, showing the most recent commits first.
🌐
Nulab
nulab.com › learn › software-development › git-tutorial › git-commands-settings › git-commit-history-commands
Git commit history commands | Git tutorial | Nulab
In this section, we will dive into a variety of Git history commands that empower you to navigate through commit history, inspect changes, view branches and tags, blame specific lines of code, and more.
🌐
Codefinity
codefinity.com › courses › v2 › 7533d91f-0a23-44a3-afc7-c84d5072e189 › 5aa6942a-dab9-4c0a-a3c4-4e21b6f8fd1b › 2a272930-e4a8-4fdd-8112-602604e96829
Learn Viewing Commit History | Introduction to Git
Moreover, it is possible to condense each commit to a single line, showing only the commit hash and the commit message using the following command: ... When running the git log --oneline command the hashes of the commits are not displayed entirely.
🌐
GeeksforGeeks
geeksforgeeks.org › git › how-to-view-the-change-history-of-a-file-using-git-versioning
Tracking File Changes Using Git - GeeksforGeeks
January 16, 2026 - git log: This is the base command for viewing the commit history in Git. -p: This option tells Git to show the diff of each commit.
🌐
GitProtect.io
gitprotect.io › strona główna › navigating git history
Navigating Git History - Blog | GitProtect.io
December 11, 2024 - This requires us to go back to the ‘git log’ option. To put it simply, type in all the options you need so that the output will show you the results you are after, and just add ‘–patch’ or ‘-p’. Take a look at the example below: ...
🌐
Alvin Alexander
alvinalexander.com › git › show-commit-history-detailed-for-single-file
Git: View the (detailed) commit history for a single file | alvinalexander.com
September 14, 2022 - As shown in the comment, the git log command by itself shows date, time, and the git commit message information for each commit/patch:
🌐
How-To Geek
howtogeek.com › home › programming › how to view commit history with git log
How to View Commit History With Git Log
August 23, 2021 - By default, git log shows a lot of info about each commit---the ref ID, the author, the date, the commit message, and if it's the HEAD of any branches.
🌐
Medium
frontendinterviewquestions.medium.com › how-do-you-view-the-git-commit-history-796fcbc62d14
How do you view the Git commit history ? | by Pravin M | Medium
August 5, 2023 - View a summarized log: The most basic way to view the commit history is by using the `git log` command. It displays the commit history in reverse chronological order, with the most recent commit appearing first.
🌐
PhoenixNAP
phoenixnap.com › home › kb › devops and development › git log: how to view commit history
git log: How to View Commit History
July 18, 2025 - It traces the commit history starting from one or more specified commits (usually the latest on a branch) and following their history backward. You can exclude commits by adding a caret (^) in front of them. Git includes all commits from the starting points, removes the ones reachable from the excluded commits, and displays the rest in reverse chronological order. By default, each entry in the output shows the commit's SHA-1 hash, author name and email, commit date, and commit message.
🌐
TutorialsPoint
tutorialspoint.com › git › git-viewing-commit-history.htm
Git - Viewing Commit History
The git log> command displays the default commit history view, which includes: Commit hash: A unique identifier (SHA-1 hash) for the commit. Author: The name and email address of the person who made the commit.
🌐
Opensource.com
opensource.com › article › 22 › 10 › git-log-command
How to display commits created on a specific day with the git log command | Opensource.com
To view commits in a Git repository created on a specific date or range of dates, use the git log command with the options --since or --until, or both.