display all branches in a git repo at once 1

display all branches in a git repo at once

git log --oneline --decorate --graph --all

Here is what the above code is Doing:
1. git log: This is the base command for viewing the commit history.
2. –oneline: This flag condenses each commit to a single line.
3. –decorate: This flag adds the names of branches or tags of the commits that are shown.
4. –graph: This flag adds a text based graphic showing the branch and merge history.
5. –all: This flag shows the commit history across all branches.

Similar Posts