by turkey99 · 2y ago · 0 comments
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.
Have you ever seen a git graph? Does this look linear? https://tortoisegit.org/docs/tortoisegit/images/RevisionGrap...
All secondary branches are works in progress that may be proposed as new commits to main.
Sticking with the blockchain comparison, every side branch in got is akin to potential blocks that miners are working on.