Draw a compact graph of all Git branches
Build a paste-ready command, then review its compatibility and effects before running it.
git log --oneline --graph --decorate --allread-onlyno known side effects Compatibility
Linux + macOS + WindowsVerified for Linux, macOS, Windows using bash, zsh, powershell syntax.
Operational knowledgereview due 2027-01-19
Requirementsgitgit must be installed and available on PATH.
Version supportgit Current supported releasesVerified for linux, macos, windows using bash, zsh, powershell syntax; consult compatibility notes for platform-specific differences.
Expected signals* 17ce242 (HEAD -> master) feat: switch to split browserRepresentative successful output; values vary with the selected target and system state.
Known errorsgit: command not foundgit is missing or is not available on PATH.
Verifygit log --oneline --graph --decorate --allThe output matches the expected target and exits without an error.Rollback noteNot required: this command is read-only and does not change system state.
Command breakdown
01git logCommit historyReads repository history.
02--onelineCompact commitsShows one abbreviated line per commit.
03--graphASCII graphDraws branch and merge relationships in the left margin.
04--decorateReference namesShows branch and tag names beside commits.
05--allAll referencesIncludes commits reachable from every local reference.
Example input
git log --oneline --graph --decorate --all
Example output
* 17ce242 (HEAD -> master) feat: switch to split browser
* edee221 feat: add initial command atlas
* b4c4c33 chore: initialize Sites project
Illustrative output — exact values vary by system and data.
Official sources