A commit records the state of code at a particular point in time and carries its own identity. In Git, that identity is a 40-character hexadecimal SHA hash. section 10.1
Use commits to support collaborative, distributed change workflows:
- Branch from a mainline version. section 10.1
- Record and share changes as a sequence of commits on a branch. section 10.1
- Have the completed work reviewed, then merge it into the mainline. section 10.1
A commit sequence
A feature branch can accumulate several commits while the mainline changes. Merging the sequence may produce merge conflicts when concurrent changes cannot be consolidated automatically, requiring manual resolution. section 10.1
Figure 10.2 The main concepts of a DVCS, and a typical interaction
Visualizes commits, branches, tags, and their typical interactions in a distributed version-control workflow. section 10.1




