I git log with graph and all branches to have big pictures on the entire history.
git log --oneline --decorate --all --graph --color
The --oneline
shows the simplified version.
The --graph
shows the commit relationship path on the left. So that the sequence of log becomes a committed path.
The --all
shows all branches, including the remote branch. Otherwise, the git log only shows the current branch.
The --decorate
shows the branch pointers to the commits. In the latest Git version, the decorate
option is on by default.
The --color
, as the name suggests, makes the log output colorful and easier to read. In the latest Git version, the color
option is on by default in some systems.