I worked in projects using svn (by using Tortoise) that never had a "trunk" directory before, and then moved onto using git, and now two companies I worked for use svn... and the word trunk
came up sometimes.
From the answers in What do "branch", "tag" and "trunk" mean in Subversion repositories? , it seems like trunk is actually just like the "main branch" as in git? Do all SVN repo always have the trunk and branches directory, while for a working directory, they are optional? Such as, if we do
svn checkout some_svn_path/trunk .
then our working directory has no trunk
directory whatsoever? (without the .
, then the trunk
directory will be there, but with the .
, the trunk
directory won't be there). But what if later on, somebody suggests using a "try-new-feature" branch, then what happens? I saw in the O'Reilly SVN book that they would have a calc
project, and then the working directory has a trunk
sub-directory as well as a branches
sub-directory.