SVN client operations

Source: Internet
Author: User
Tags svn client svn update

Step 2: Install the client

Download the TortoiseSVN-1.4.0.7501-win32-svn-1.4.0.msi installer, double-click to directly install. After the installation is successful, right-click and choose svncheckout and Tortoise SVN.

Step 2: Create a workspace

Before the project starts, create a folder on the server-side PC (drive C) (provided that the svn server-side program svnversion is installed), and name the folder randomly (such as SVN ), this folder serves as the workspace for software developers during project development.

Step 2: Create a version Library

One way is to create a new version library folder under SVN under the created folder, such as the folder name: psmcpp

Then open psmcpp

Folder, right-click the folder, and select [totoisesvn]-> [Create repository here

Another method is to run the command: svnadmin create c: \ SVN \ psmcpp

(Create a version Library)

Step 2:

Set the version control library permission, open the/CONF/directory, and open svnserve. conf. Find the following two sentences:
# [General]
# Password-DB = passwd
# At the beginning of each line, where the second row specifies the name of the authentication file, that is, the passwd file
Open the passwd file and set
# [Users]
# Harry = harryssecret
# Sally = sallyssecret
Remove the character starting with # [users] #. This is set to a user. One row is stored in the format of "username = password". If you can insert a line: Wang = 123, that is, a user with the username Wang and password 123 is added to the system.

Step 2:

Start the server-side program service. Here we also use the command line format:

Svnserve.exe -- daemon -- root c: \ SVN (start the service)

Step 2:

Upload our project folder to the version library we created earlier:

Right-click and choose [toisesvn]-> Import,

 

 

 

Here we assume that the project to be imported is named dlsdl. Here we import the project to the version library address you want to import.

 

The version number is displayed. For example, 9

Step 2:

Download version Library

Create a folder on the client, and then click

[Svncheckout]. The following dialog box is displayed.

 

Here, we can select the version number you want to download, select it, and enter the corresponding version number. By default, this is the latest version number.

Step 2:

Rename a file:

Right-click the file or folder to be renamed, and select [toisesvn]-"rename.

To delete a file or folder, click the file or folder and select [totoisesvn]-> delete or rename.

Retrieve deleted files:

In the blank area of the project folder, click and select Check for modifcations. Then you can see all your operations on the project file, select the file you want to restore, and click the Gai file.

Display log:

[Totoisesvn]-"show log

 

Version Browser:

[Totoisesvn]-"repo-Browser

You can intuitively see the version number of the file in the version library.

 

Get lock: getlock

If a file or folder in the version library is locked, other users cannot operate on the file or folder.

Release lock: Release lock

Released. Other users can operate on files or folders.

 

If a file in the database is modified, the system automatically adds a red exclamation mark to the file and its parent folders at all levels, indicating that the file or directory has been modified locally.

After modifying the version library, right-click the workspace folder and select Commit to submit the new version. after entering the password, the system will upload the modified version Library to the server, the version library is updated once.

Note:

Before modifying the local version library in the workspace folder, you must update the local version Library (right-click the workspace and select SVN updata) to download the latest version to the local, then, modify the file.

Step 2:

View the version tree:

Select revision graph. A window is displayed, showing the version tree of the file.

For example, the project version ranges from 2 to 9.

Step 2:

Download the old version of an object:

 

To get the old version of a file, right-click the file and select updatato revision... You can. The system prompts you to enter the version number. For example, to download the fifth version of dlsdl, enter 5. (For example, if you want to return to the latest version after viewing the file of version 5, you only need to run updata on dlsdl.

Step 2:

Undo modification:

After a file is modified and saved (note that it is not submitted here), if you are not satisfied with the modification and want to modify it again, you can right-click the modified file (the one with a red exclamation mark) and select revert. The previous changes will be undone and restored to the status after updata. If a file is accidentally deleted, you can right-click the directory where the file is located and select revert to restore it.

Step 2:

Add a file

When you add a file on the client, right-click the file and choose [toisesvn]-> Add. A cross icon will appear when you change the file, right-click the file, select SVN commit, and click the project folder and select SVN update. The new file is added to the version library.

 

Step 2:

Exception Handling:

When two users download the latest version library and submit modifications to the same file in the library dlsdl, the first submitted user Deva will not have an exception, the second submitted user DEVB will be unable to submit. Because the version library of the server has been updated by Deva, the system will prompt an error when the DEVB user uploads the file. In this case, the DEVB user must first perform the updata file operation on the modified file and then submit the file.

Step 2:

For the totoisesvn icon concept, we can

Use totoisesvn-> Settings and select the icon set to view the settings.


 

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.