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.