No, that doesn't mean it shows all the latest commits. It shows all commits in the history of branches, tags and other refs, but it does not show commits that are not reachable from any ref. A typical example of a commit that is not reachable from any ref is when you've just run git commit --amend: the previous commit still exists locally, but it's no longer reachable and won't be shown in git log --all. But git reflog will confirm that it does indeed still exist.

As for why --all isn't the default: you normally won't want that. For instance, if you're on branch master, and you run git log, you typically aren't interested in the history of any feature branches, you typically want to see the history of master.

If you do normally want the --all behaviour, I recommend creating an alias.

Answer from user743382 on Stack Overflow
🌐
Git
git-scm.com › docs › git-log
Git - git-log Documentation
This option is assumed if the config value log.initialDecorationSet is set to all. ... Print out the ref name given on the command line by which each commit was reached. ... Use mailmap file to map author and committer names and email addresses to canonical real names and email addresses. See git-shortlog[1].
🌐
Git
git-scm.com › book › en › v2 › Git-Basics-Viewing-the-Commit-History
2.3 Git Basics - Viewing the Commit History
$ git log -p -2 commit ca82a6dff817ec66f44342007202690a93763949 Author: Scott Chacon <schacon@gee-mail.com> Date: Mon Mar 17 21:52:11 2008 -0700 Change version number diff --git a/Rakefile b/Rakefile index a874b73..8f94139 100644 --- a/Rakefile +++ b/Rakefile @@ -5,7 +5,7 @@ require ...
🌐
LornaJane
lornajane.net › posts › 2014 › git-log-all-branches
Git Log All Branches | LornaJane
February 3, 2014 - Usually I use git log with --oneline, mostly also with --decorate, often with --graph, and in this specific scenario, also with --all to show reachable commits other than ones that HEAD descended from.
🌐
Atlassian
atlassian.com › git › tutorials › git-log
Advanced Git Log | Atlassian Git Tutorial
January 12, 2026 - For example, the following returns all commits that affected either the foo.py or the bar.py file: ... The -- parameter is used to tell git log that subsequent arguments are file paths and not branch names.
🌐
GitHub
github.com › jesseduffield › lazygit › discussions › 2182
git log --all --graph · jesseduffield/lazygit · Discussion #2182
Its default value contains --graph --all, among other flags. Beta Was this translation helpful? Give feedback. ... There was an error while loading. Please reload this page. Something went wrong. There was an error while loading. Please reload this page. ... Thank you! The default shows what I want. I didn't check the menu on this panel, indeed the "a" shows a log of all branches.
Author   jesseduffield
🌐
giovanism
giovanis.me › post › git-log-all-graph-oneline
git log --all --graph --oneline | giovanism
February 8, 2022 - The --all flag tells git to show commits from local and every remote branches. The --graph flag tells git to show commits as graph, connecting commits with their parrents. And lastly, the --oneline flag will tells git to show commit logs in ...
🌐
Brad
brad.net.nz › blog › 2016 › 06 › 08 › git-logs-and-commits-across-multiple-branches
Git logs and commits across multiple branches – Brad
June 8, 2016 - The -all flag allows you to see the log across all branches, combining this with the cherry-pick command is very useful when you want to bring across just one set of changes rather than merging a whole branch.
Find elsewhere
🌐
GeeksforGeeks
geeksforgeeks.org › git › how-to-check-git-logs
Git Logs - GeeksforGeeks
1 month ago - git log --oneline --graph --decorate --color --all
🌐
Initial Commit
initialcommit.com › blog › git-log
git log | A Guide to Using the log Command in Git - Initial Commit
May 29, 2022 - We can filter our git log by date using a few different techniques. Here are some of the more common ways this can be accomplished. The --after option allows you to view all commits made after the given date:
🌐
freeCodeCamp
freecodecamp.org › news › git-log-command
Git Log Command Explained
January 11, 2020 - git log --pretty=format:"%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset" -n {NUMBER_OF_COMMITS} --author="{AUTHOR_NAME}" --all
🌐
Devhints
devhints.io › git › git log cheatsheet
git log cheatsheet
See gitrevisions. -n, --max-count=2 --skip=2 · --since="1 week ago" --until="yesterday" --author="Rico" --committer="Rico" --grep="Merge pull request" # in commit messages -S"console.log" # in code -G"foo.*" # in code (regex) --invert-grep --all-match # AND in multi --grep ·
🌐
IONOS
ionos.com › digital guide › websites › web development › git log
How to search and list commits with Git Log - IONOS
November 9, 2022 - The syntax of Git Log is very simple. The command simply lists all the commits in your project in reverse chrono­log­i­cal order. It begins with the most recent commit and you can scroll step by step through the previous snapshots.
🌐
TheServerSide
theserverside.com › blog › Coffee-Talk-Java-News-Stories-and-Opinions › How-to-use-the-git-log-graph-command
How to use the git log graph and tree command
October 29, 2020 - Developers can see all branches in the graph with the –all switch. Also, in most situations, the –decorate switch will provide all the supplemental information in a formatted and nicely color-coded way. graph@log:~$ git log –all –decorate –oneline –graph
🌐
Hatica
hatica.io › blog › git-log-cheatsheet
Git Log Cheatsheet For a Productive 2024 - Hatica
April 24, 2023 - The most basic Git log command is "git log." This command displays the commit history for the current branch, starting with the most recent commit. The output includes the commit hash, author, date, and commit message.
🌐
DEV Community
dev.to › ruqaiya_beguwala › day-2230-git-log-graph-oneline-all-visualize-branch-history-3pnc
Day 22/30 - git log --graph --oneline --all – Visualize branch history. - DEV Community
June 12, 2025 - Git provides powerful tools to ... That’s where git log --graph --oneline --all comes in—it condenses commit history into an easy-to-read graph, showing branch relationships at a glance....
🌐
Linux Kernel
kernel.org › pub › software › scm › git › docs › git-log.html
git-log(1) Manual Page
August 25, 2025 - This option is assumed if the config value log.initialDecorationSet is set to all. ... Print out the ref name given on the command line by which each commit was reached. ... Use mailmap file to map author and committer names and email addresses to canonical real names and email addresses. See git-shortlog(1).
🌐
Unstop
unstop.com › home › blog › git log | a comprehensive guide including all options
Git Log | A Comprehensive Guide Including All Options
October 5, 2023 - For example, git log --since="7 weeks ago" displays only the commits made in the last seven weeks · --clear-decorations: This option relaxes the default decoration and clears all previous --decorate-refs or --decorate-refs-exclude settings when used with git log.