Visualize branches (Git)

Git command

All branches

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

Specific branch

$ git log {branch-name} --decorate --oneline --graph

Output example

* a1b3e33 (HEAD -> feature_3, origin/feature_3) feature 3 - commit 1
| * f0685f0 (origin/feature_2) feature 2 - commit 2
| * 9445121 feature 2 - commit 1
|/
* 5f657e6 (origin/develop, develop) develop - commit n
* 50d5da6 develop - commit n-1
* 936d003 develop - commit n-2
| * e36e5ba (origin/feature_1) feature 1 - commit 1
|/
* 090703b develop - commit n-3