Cornerstone Use Tutorial (configuration svn,http and svn simple use)

Source: Internet
Author: User

1.SVN Configuration

Suppose your company SVN address is: Svn://192.168.1.111/svn/ios, user name: Svnserver, Password: 123456

1: Fill in the host address

2: If your host address has a port number, such as 192.168.1.111:8080, then 2 fill in 8080

3: Fill in the path behind the host

4: Auto-generated, if you do not have this svn://user name @ host Address: Port number/path format, then the error is filled out

5: Also automatically generated, will be displayed in the sidebar as 5 in the name, you can customize the name

6: User Name

7: Password

Fill in the above information after the selection can be added, such as failure to add, the information filled out correctly, then contact the administrator, check the address, user name, password is correct

2.HTTP Configuration

As with SVN, there is only one place to be aware that if the address is https://, the option to modify the location shown is HTTPS, otherwise the failure will also be added

Iv. Introduction of Use

1. Uploading Items to Repository

You can drag directly into the subfolder of repository, or select the Import button above the software to upload, will pop up the option to fill in the location and name, and then select Import to

2. Download the project

There are two types of downloads: Export and check out, except that the export project will not be associated with the source file in Repository, is a standalone version, and the check out file will create a working copy, see the first image of step three , this file is associated with the source file in the library, when there is a new version (others modified) or local modification (self-modification), working copy will show the number of changes, the number of white is modified by others, the number of gray for me to modify the quantity

So if you are a developer in the project, you can choose check out, if you just download the view, do not want your own changes affect the whole project, it is best to choose Export

3. Version Management

Each commit creates a new version, and all historical versions are saved in Repository, such as (can be retrieved by a modified person and submitted information), so using SVN development gives you a good control over the problem of code repair when an unresolved and unknown bug occurs in the project:

SVN facilitates multiple people to develop code merging issues for the same project, but there are a few things to note:

① first update after submission

When you see a new version (that is, the companion has already submitted the code), update the code until working copy no longer shows the white circle, and then run the code to determine that it can be run and function correctly before committing its own code, which can cause multiple conflicts or bugs in the project, and it is difficult to troubleshoot the cause

② complete the standalone function before submitting, and be sure to fill in the submission information

Each completion of a separate function, or solve a bug and then submit the code, do not repeat the submission repeatedly, resulting in too many versions, and must fill in the submission of information, the completion of this completed what function, convenient can be a message search to view the historical version

③ Conflict File

In principle, the same group of developers are best not to operate in the same file, but sometimes must go to other files to operate, or a mistake, if at the same time multiple people in the same file to modify the code, the author will appear after the version of the conflict file, there will generally be three different suffixes of the same name file

. mine file: Changes I have made

Two. r0xx files: xx is a number, the number is smaller for the change before the file, the larger for the changed file, in the file will have <<<< mine. r0xx >>>>> and so on the words contained in the code, that is, the place of the conflict, In this case, please discuss with colleagues in the group or delete some of your own files to debug, repair the file

For iOS projects: If a project or file does not open, select Show Package Contents---Open project.pbxproj file, search. Mine, place the. Mine part before and after << << >>>> included in the code deletion, the project can be opened, if a build when a Xib file cannot open the error, then select, open with the document, the same as above to solve the problem can not build

④ new Add File

Submit a newly added file displayed as a question mark status, select the right click after select Add to working copy and then commit

is the specific item from SVN checkout to the workspace after the right side of the interface;

The interface that is not checked out differs from it;

1. The commonly used changed,modified,conflicted,missing,unversioned are identified in the figure;

2.

    • Xcshareddata: Logs the address of the remote repository
    • Xcuserdata: Contains the open structure of the folder/which file the current user stays in/the breakpoint

Cornerstone Use Tutorial (configuration svn,http and svn simple use)

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.