Trunk vs. HEAD in Version Control Systems
This aim of this note is to provide the shortest and simplest explanation of the concepts of trunk and HEAD in a Version Control System like CVS and Subversion (SVN.)
Like in botany, trunk is a tree’s central superstructure. All branches come out of the trunk:
Trunk and branches from http://www.javaworld.com/javaworld/jw-01-2008/images/svn1.jpg
Trunk and branches from http://www.javaworld.com/javaworld/jw-01-2008/images/svn1.jpg
Main development is performed in the trunk. Releases are branched for bug fixes and maintenance releases.
In the next diagram, the tip of the arrows for trunk and a branches are HEADs. Each branch and trunk have a HEAD.
[画像:Heads on trunk and branches from http://svnbook.red-bean.com/en/1.5/svn-book.html#svn.branchmerge.using]
Heads on trunk and branches from http://svnbook.red-bean.com/en/1.5/svn-book.html#svn.branchmerge.using
That’s it!
2 thoughts on “Trunk vs. HEAD in Version Control Systems”
brilliantly simple explanation
Like Like
Pingback: The Trunk Line – The lost outpost