git log --pretty=oneline --graph command code example Example: git log oneline graph git log --oneline --graph