it's pretty much the exact same principle, the chain of hashed commit contents being part of the input to the next commit in the branch have the same property

That's ONE of the linchpins of cryptocurrency, yes. Git has that part.

Someone else mentioned consensus which is orthogonal. Git does not have that part.