DEV Community

Discussion on: What's a git tree?

Collapse
 
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

Collapse
 
nichartley profile image
Nic Hartley

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.