The most rated answers are showing git log commands as favorite solutions.

If you need a table-like, say column-like output, you can use your awesome git log commands with slight modifications and the .gitconfig alias.table snippet below.
Modifications:
In your format part of your log alias, each commit placeholder that should lead to a column needs a width limit
%<>(N,ltrunc,mtrunc,trunc)%CommitPlaceholder
where in %<>(N,ltrunc,mtrunc,trunc)
N sets the column width to N characters, with N >= 2
<> place it on the < - left, <> - middle or > - right
ltrunc,mtrunc,trunc truncate longer contents from the ltrunc - left, mtrunc - middle or trunc - right
and is optional for every last commit placeholder of a format line or every commit placeholder that always expands to the same length.
To recognize your format part in the snippet below, format:'' must be used and nowhere else in your Git log alias.
Example:
log --all --graph --color --pretty=format:'%Cblue%h %Cgreen%cr %Creset%s' -10
becomes
log --all --graph --color --pretty=format:'%Cblue%<(7,trunc)%h %Cgreen%<(15,trunc)%cr %Creset%s' -10
where
%<(7,trunc) is optional as every abbrev commit %h has length 7
%s is the last commit placeholder of the format line
Explanation:
The key point is to count the tree characters. The resulting tree length is then appended to the beginning of each format line in a special format.
Snippet:
Add this bash snippet that only uses the external commands wc and of course git to your .gitconfig.
[color "decorate"]
HEAD = blink bold italic 196
branch = 214
tag = bold 222
[alias]
# change alias names to give them a more meaningfull name or add your own versions here
tlog0 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) %C(bold green)%<(15,trunc)%ar%C(reset) %C(dim white)%<(22,trunc)%an%C(auto)%<(15,trunc)%d %C(white)%s%C(reset)' --all
tlog1 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%<(31,trunc)%aD%C(reset) %C(bold green)(%<(22,trunc)%ar)%C(reset)%C(auto)%d%C(reset)%n%<(10,trunc)%x20%C(white)%s%C(reset)%n%<(10,trunc)%x20%C(dim white)%<(31,trunc)%an %ae%C(reset)'
tlog2 = log --all --color --date='format:%Y-%m-%d %H:%M:%S' --decorate=short --graph --pretty=format:'%C(bold dim white)%ad%C(reset) %C(bold dim cyan)%<(20,trunc)%an%C(reset) %C(bold cyan)%h%C(reset)%C(auto)%d%C(reset)%n%C(dim white)%<(19,trunc)%ar%C(reset) %C(dim cyan)%<(20,trunc)%ae%C(reset) %C(bold white)Commit:%C(reset) %C(white)%s%C(reset)%n'
table = !bash -c '" \
alias=$1; \
apost=$(echo -e \"\\u0027\"); \
shift; \
log_cmd=\"$(git config alias.$alias) $@\"; \
[[ \"$log_cmd\" == \" $@\" ]] && { git $alias $@; exit; }; \
\
\
log_fst_prt=\"${log_cmd%%\"format:$apost\"*}format:\"; \
log_tre_prt=\"${log_cmd#\"$log_fst_prt$apost\"}\"; \
log_tre_prt=\"${log_tre_prt%%$apost*}\"; \
log_lst_prt=\"${log_cmd#\"$log_fst_prt$apost$log_tre_prt$apost\"}\"; \
log_cmd_tre=\"${log_fst_prt}$apost%x20$apost${log_lst_prt}\"; \
\
\
for opt_dis in \"--color\" \"--stat\";do \
log_cmd_tre=\"${log_cmd_tre//\" $opt_dis\"}\"; \
done; \
tre_width=$(eval git \"${log_cmd_tre}\" | wc -L); \
\
\
i=0; \
log_tre_new=; \
while IFS= read -r line;do \
((i++)); \
if [[ $i -eq 1 ]];then \
log_tre_new+=\"%<|($tre_width,trunc)%x20${line}\"; \
else \
log_tre_new+=\"%n%<|($(($tre_width-1)),trunc)%x20${line}\"; \
fi; \
done <<< \"$(echo -e \"${log_tre_prt//\\%n/\\\\n}\")\"; \
[[ \"${log_tre_prt%\"%n\"}\" != \"$log_tre_prt\" ]] && log_tre_new+=\"%n\"; \
\
\
log_cmd=\"${log_fst_prt}${apost}${log_tre_new}${apost}${log_lst_prt}\"; \
eval git \"$log_cmd\"; \
"' "git-table"
where the
- first section loads your alias and your optional parameters into variables
- second prepares your alias for counting
- third disables some options for counting and counts the tree length
- fourth adds the tree length in an appropriate format to any format line
- fifth calls Git with your prepared table-like alias
This is more or less only a part of my answer https://stackoverflow.com/a/61487052/8006273 where you can find deeper explanations, but nicely fits to this question here too.


If there are problems with your git log commands, please leave a comment.