SVN checkout Https://svn.com/svn/project
This action pulls the code down from the SVN server and establishes the local and remote files corresponding to the state of the association.
1, and the difference between the export
The SVN checkout operation, unlike the export: checkout will have an. svn file, which is associated with the SVN server side, while export downloads only files, no. svn files, no relationship to the SVN server side, and local modifications do not have a status ID.
2. Check out some catalogs
Key parameter control:--depth
--depth arg:limit operation by depth ARG (' Empty ', ' files ', ' immediates ', or ' infinity ')
--set-depth arg:set New working copy depth to ARG (' Exclude ', ' empty ', ' files ', ' immediates ', or ' infinity ')
Empty: Any documents that are not out of the project;
Files used to be useless;
Immediates: The first level of the directory;
Infinity: Entire Directory All files
Case:
A project has a lot of tags, a lot of branches, a trunk. Many times do not care about all tags,branches, but will care about branches (tags) below the first level directory.
Requirements A: Check out the entire project, including the Branches,tags,trunk directory, Branches/tags contains the first level of the directory, trunk contains all the code
Action 1: SVN checkout Https://svn.com/svn/project--depth=immediates
Navigate to the project directory
Action 2: SVN checkout Https://svn.com/svn/project/trunk--depth=infinity
Action 3: SVN checkout https://svn.com/svn/project/branches--depth=immediates
Action 4: SVN checkout https://svn.com/svn/project/tags--depth=immediates
Requirement B: Check out a branches version
Operation : CD project/branches; SVN checkout Https://svn.com/svn/project/branches/branch1--depth=infinity
SVN checkout operation