Skip to main content

git log --pretty variants

git log --pretty=format:"%C(yellow)%h %Cblue%>(12)%ad %Cgreen%<(7)%aN%Cred%d %Creset%s"
git log --pretty=format:"%C(yellow)%h %Cblue%>(12)%ad %Cgreen%<(7)%aN%Cred%d %Creset%s" --graph --date=short

Windows:

DOSKEY gll=git log --pretty=format:'%%C(yellow)%%h%%x20%%Creset%%ad%%x20%%Cgreen%%aN%%x20%%Cred%%d%%x20%%Creset%%s' --date=short --graph --all

A version to look the status of the server:

git log --pretty=format:"%h %ai%x09%an%x09%s" -n 1

Output will be like:

3d93e3b 2024-01-17 13:34:04 +0100       SimpelMe        docs: add comment where to find box spreadsheets