Log

The list of commits in a repository, newest first.

Think of it as The list of saves in your game's load screen.

git log --oneline shows one line per commit, and --graph draws where branches split and join.

Where the picture breaks

Two save files can never be combined in a game, but Git merges branches line by line; and when the file is binary, such as a place file, Git cannot merge it at all and one version must win.

Git tracks text files as a history of commits. Branches diverge and merge; conflicting lines need a person to decide. Binary files have no lines, so teams keep code and the project file in Git and build the place from them.

See it with the rest of the analogy cast

Related terms