Pull requests in github is actually very similar conceptually to a consensus mechanism used in crypto currencies. Everyone has an identical copy of the main branch with an identical history of every commit in order, a PR is saying "I think this commit goes next" and, if you use code reviews, the PR approval is consensus.