4 ms·
Try this: git log --oneline --graph Seeing the --graph output really helps in understanding the branch history. The lack of a view similar to --graph on
by rectang 4y ago
Try this:
git log --oneline --graph
Seeing the --graph output really helps in understanding the branch history. The lack of a view similar to --graph on Github drives me bananas.
I don't like typing "git log --oneline --graph" all the time, so in my profile I have a `git slog` alias which is similar but adds date and author, plus truncates each line at 100 columns so it doesn't wrap:
slog = log --pretty=tformat:'%C(bold blue)%h %C(bold red)%ad %C(bold blue)%aN%C(auto)%d %<|(100,trunc)%s%C(reset)' --date=short --graph
My terminal has a light background. If you prefer a dark background, I suggest changing "bold blue" to "bold green" and "bold red" to "bold yellow":
slog = log --pretty=tformat:'%C(bold green)%h %C(bold yellow)%ad %C(bold green)%aN%C(auto)%d %<|(100,trunc)%s%C(reset)' --date=short --graph