There’s still a git-compatible commit ID which changes along with the contents. There’s also an immutable revision/change identifier that persists even as you continue working on it.
This works extremely well in practice and makes rebase-heavy workflows practical even when collaborating with others.
This works extremely well in practice and makes rebase-heavy workflows practical even when collaborating with others.