"Pure dry" what you should be aware of when using SVN

Source: Internet
Author: User

First, SVN use steps

    1. Check out Checkout
    2. Updating update
    3. Conflict Confilicte
    4. Adding Add (no items can be added without writing)
    5. Fill in the SVN log
    6. Commit Commit
      Do you think it's over by here? .... no!!! Go on.
      For SVN operations, it is generally not recommended to directly right-click on the Project-team-submit/update; it is recommended to unify the update, add, commit and other transactions in the repository . Because in the repository, there is an intuitive comparison of the files to be changed or changed

Second, the matters needing attention:

    1. submit the time must be written log (SVN trial and team development, a team may have more than one person to work on a file, if each person submits the time does not record this need to submit the content, may cause later the file error, Unable to timely locate to which one or the time of the submission of the problem, but also for future bug review is not convenient. So when you write the log, you have to change which places, where there are deviations, and then how to solve the deviation to write down);
    2. must be updated before submission (this is mandatory, because you do not know before you submit the file has been submitted by others have been modified, so the first part of the time, you are required to operate in the repository );
    3. repeated review to ensure that the correct premise, the diligent update diligent submission (not explained);
    4. Submit only the files that you have modified, and check whether the documents need to be submitted (not explained) before submitting them.
    5. Use steps Note:update->add-> Write comments->commit, if a complete transaction, indispensable

Third, other operations of SVN

Finally, a random summary of the commonly used SVN operation for you to crossing too enjoyable ...

    1. View a file history commit record: Right-click the file--team--Show Resource history (H)
    2. To compare the differences between the current file and the file in the repository: Right-click the file--compare with
    3. Replace file/restore: Right-click the file--replace with

      Note: Please be careful to replace the operation, please back up when necessary, the replacement operation is irreversible!
    4. Resolve Conflicts:
      Two cases:
      ① The local file does not modify the code (may add a space in the file, such as invisible operations), this situation is directly restored;
      ② into the resource pool
      Click on the "4" labeled Red Arrow, here will show all the conflicting files: There are two types of conflicting files:1 is more than one person to modify the file, but the changes are different parts ;2 Multiple people modify the file, and two or more of them operate the same piece of code. For the first kind can be directly updated without special treatment, for the second, you need to operate cautiously, must not be a brain update. You can copy your own code and discuss it with another person before deciding what to do. In fact, conflict code, there is no good solution, can only be responsible for coordination between people.

Here's a picture of the library above in a brief introduction to the use of the resource pool:
"1": Repository--local (update)
"2": local--Resource library (Submit)
"3": Contains "1" "2"
"4": Conflict file

"Pure dry" what you should be aware of when using SVN

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.