Skip to content

History

Visualize Branches (branches and merges)

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

Pretty log

git log --pretty=format:"%h %an %ar %s"

Author

git log --author="Alexander"

Keyword

git log --grep="bugfix"

File

git log -- hello.txt

Show commits between two refs:

git log branch1..branch2

Last 5 commits

git log -5

Time

git log --since="1 week ago"

Two Dates

git log --since="2024-01-01" --until="2024-01-31"