Forrest logo
back to the git tool

git-show-branch:tldr:78952

git-show-branch: List the latest commits in all branches.
$ git show-branch --all --list
try on your machine

The git show-branch command is used to display the relationship between branches in a Git repository. It shows the commit history and the common commits shared between multiple branches.

The --all option in git show-branch --all tells Git to display all branches in the repository, including local and remote branches.

The --list option in git show-branch --all --list is used to list the output in a compact and easily readable format. Without this option, the command would display the commit history in a more verbose format.

Overall, the command git show-branch --all --list displays a concise and readable representation of the commit history and branch relationships in the Git repository, including all branches.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the git tool