DEV Community


Discussion on: What's a git tree?

jvanbruegge profile image
Jan van Brügge

It's not a tree, but a DAG (directed asyclic graph). Every tree is a DAG, but not every DAG is a tree

nichartley profile image
Nic Hartley Author

Mathematically, yes, you're right, but git's documentation and users both refer to it as a "git tree", and talk about it with metaphors like branches.

Forem Open with the Forem app