SVN Quick Start 2 -- Operations in Windows

Source: Internet
Author: User
Tags svn update tortoisesvn

PreviousArticleThis section describes how to use command lines to execute SVN commands. The following section describes how to use Svn in windows.

Anonymous Users are generally not allowed for security purposes. Therefore, set the svnserve under the repository \ conf directory. in the conf file, add # comment out the Anon-access = read and anon-access = write, and remove the # Before password-DB = passwd. This indicates that the passwd file in the same directory takes effect.

Create a user in the passwd file in the same directory: Qishan = qishan123. the user name is on the left of the equal sign and the password is on the right.

Note: After a logon, SVN will save the logon information and store it in the files on the hard disk. The storage location is: C: \ login ents and Settings \ [your login system username] \ Application Data \ subversion. to delete this information, you only need to delete the auth folder in this directory.

Installing tortoisesvn http://tortoisesvn.tigris.org is as follows: http://tortoisesvn.net/downloads

Import command

After the installation is successful, create a new folder, create a file in it, right-click the folder, The tortoisesvn command menu appears, and then select the import command. Import the directory to the server. Under SVN management.

Server address and description

Import successful!

Checkout command

Create a folder named test4, right-click it, and select checklou

Enter the directory for checkout.

The green icon indicates that the file version is the same as that of the svn server.

Modify the text2.txt file. After saving the file, the icon becomes red, indicating that it is different from the server version.

If you confirm the modification, keep the svn server version and the file you modified.Commit command

 

 

When the commit succeeds, the icon turns green again, indicating that the file version in the svn server has been updated to be consistent with the one you modified.

After text2.txt is modified, the icon that you used to checkout turns red.

 

If you want to update the svn server to the latest version. UseUpdate command.

Note: You should right-click the folder where text2.txt is located and choose SVN update.

The icon changes to green, indicating that your file version is the same as the latest version on the server.

Note that if you do not have a commit after modifying the file, but want to reply to the previous version, you cannot use update to delete the file, re-Checkout the version you want.

ConclusionAdd command

Create a file in the checkout folder.

Run the Add command:

 

 

 

 

 

 

 

 

The icon turns blue, indicating that this file is a new file, but it has not been updated on the server.

If the svn server updates the files, execute the commit command on the files. Then the file icon turns green.

 

 

By now, the svn operation in Windows has been described. Coming soon!

Related Article

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.