SVN checkout operation

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.