Not at all. Git branches get merged into the trunk( master branch ). That's not a tree at all. It's a rather directed acyclic graph ( DAG ). Also, it's not very useful to think that branches have commits, branch is moving tag rather.
Official documentation on git is rather poor and difficult to understand.