DELAPARRA
Index
Color
NL
Category: Git commands

git log

Explained by Updated

What is git log?

git log: Show the commit history. git log shows the commit history of the current branch, newest first, with author, date and message. The default output is verbose. git log --oneline shows one line per commit, --graph draws branches and merges, and -p includes the actual changes. git log -- path/to/file limits the history to one file, which helps when you want to know how a piece of code evolved.

Definition source Coders Lingo, CC BY 4.0

Frequently asked questions about git log

What should you keep in mind with git log?

Searching is where it gets powerful. git log -S "calculateVat" finds commits that added or removed that text, and --author and --since narrow things further. Combined with good commit messages, this answers questions like "when did we change the shipping rules, and why?" in seconds instead of guessing.

At a glance

CategoryGit commands
Explained by
Updated

More Git commands terms

All terms starting with G

Skills

Download all skills (zip)

Manuals

Related services

Need any help?

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.