Install, configure, and use SVN on Windows

Source: Internet
Author: User
Tags svn client svn update tortoisesvn
1. Tool Introduction

1.1svn and visualsvn

Visualsvn server2.5.6 (Version Control Server) Free Open Source Software

Is based on the Subversion server on Windows platform, it is free of charge

Official download:

Http://www.visualsvn.com/files/VisualSVN-Server-2.5.6.msi

Tortoisesvn1.7.9.23248 (Administrator client), Free Open Source Software

The SVN client subversion has two types of clients: web-based clients such as websvn and client software represented by tortoisesvn. The former requires the support of the Web server, and the latter requires the user to install the client locally.

Official download:

Http://cdnetworks-kr-1.dl.sourceforge.net/project/tortoisesvn/1.7.9/Application/TortoiseSVN-1.7.9.23248-win32-svn-1.7.6.msi

Toroisesvn Simplified Chinese package 1.7.9.23248

Official download:

Http://cdnetworks-kr-1.dl.sourceforge.net/project/tortoisesvn/1.7.9/Language%20Packs/LanguagePack_1.7.9.23248-win32-zh_CN.msi

Ankhsvn 2.4.20.10 (vs plug-in), Free Open Source Software.

Vs plug-in ankhsvn

Official download:

Http://ankhsvn.open.collab.net/files/documents/175/6483/AnkhSvn-2.4.11610.msi

Note:

Tortoisesvn is a Windows client of SVN that can manage almost all code. While ankhsvn is a vs-based plug-in that is only used to manage vs-related items, if you only use vs for a project, you can install ankhsvn + visualsvn server. On the contrary, if you do not use vs, you only need tortoisesvn + visualsvn server. If you want to use all of them, you need to install three.

2. visualsvn Server

2.1 install visualsvn Server

After the download, run the installation program of visual SVN server. The steps are as follows:

1. Install the first interface next.

2. Accept the license agreement next.

3. Select components,

 

4. Customize the installation and configuration,

 

5. install.

6. installation is complete. Next.

7. Complete installation,

2.2 configure and use the visualsvn Server

After the installation is complete, start the visual SVN Server Manager. The main interface is as follows:

 

2.2.1 to create a code library, follow these steps:

1. Create a code library,

 

2. code library configuration information,

 

3. OK. Creation successful.

2.2.2 code library Security Settings

To set security, follow these steps:

1. Create an account,

In this way, four accounts are created for coder, coder1, coder2, and coder3.

2. Add the account to the created codebase project,

 

In the same way, you can create a group, add a group of users to a group, and authorize the group.

3. tortoisesvn

3.1 tortoisesvn Installation

To run tortoisesvn, follow these steps:

1. Install the first interface next.

2. Accept the license agreement next.

3. Select the installation path, select all functions, and click Next.

4. Next until finish.

3.2tortoisesvn configuration and use

3.2.1 check in the Code to the svn server by performing the following steps:

For example, we created a vs project in the previous codebase code library, right-click the codebase folder,

 

1. Write the URL of the code library to the address displayed in the visualsvn server,

 

2. Click OK to bring up the form,

 

3. Click OK. A window is displayed when the operation is successful,

 

4. Click OK to complete the check-in.

3.2.2 check out the code library locally

The procedure is as follows:

1. Right-click the codebase file of the code library and select SVN checkout. The form is displayed,

2. I have exported D: \ repositories \ codebase. Click OK, enter the user name and password, and click OK.

Note:

You can enter the code library address in the browser to access the code library. In ie9.0, enter https: // local iPod/SVN/codebase/and https: // 2003 Server/SVN/ABC/ajax/can be used, while chrome 21.0.1180.83 can only be accessed using https: // native iPod/SVN/codebase/. I still don't know why. I have not installed other browsers, so I don't know what the situation is.

In addition, the checkout code just now is what our developers need to perform. Open it and you can see the status of each file,

You can view the status of each file in the icon set in the Settings dialog box of tortoisesvn. You can also customize the icon style here,

3.2.3 submit the modified file to the server

1. In the blank space of the modified file directory or in the parent folder of the modified file, right-click SVN commit ..., Pop-up form,

 

2. Click OK.

3.2.4 Add a new file to the server

1. Create a new class file in the local code directory, right-click tortoisesvn à add, select the new file, and click OK.

Note: At this time, the file is only marked as a file on the server and is not actually uploaded to the server. You can open the service file list in the browser to view the file you just created, to add files to the server, continue with the next step.

2. Right-click SVN commit… in the blank space of the newly created file directory or in the parent folder of the newly created file ..., Pop-up form,

 

3. Click OK. Refresh the browser to view the file you just created.

3.2.5 update the local code to be consistent with the latest version on the svn Server

This is also very simple. You just need to right-click the folder to be updated or right-click the blank space under the file and click SVN update.

Note: The update operation may fail due to version conflict. This can be solved by merging [merge] or other methods. It may also fail because the [get lock] is locked, you need to unlock [release lock] first.

3.2.6 rename a file or folder and submit the modification to the svn server.

Right-click the file or folder to be renamed, and click tortoisesvn => rename ..., Enter a new name in the pop-up form and click OK to press the button. This method does not directly rename the file or folder, but marks the name of the file or folder as the name after renaming. We also need to submit it to the svn server using SVN commit to rename it.

3.2.7 delete files or folders and submit the modifications to the svn Server

The easiest way is to directly delete files or folders and use SVN commit to submit updates to the svn server. Another method is to right-click the file or folder you want to delete> tortoisesvn => Delete to delete it. This method is not directly deleted, the state of the file or folder is set to delete. We also need to use SVN commit to submit it to the svn server before deleting it.

 

4. ankhsvn

4.1ankhsvn Installation

Download complete run AnkhSvn-2.4.11610.msi as follows

1. First Interface

 

2. Click Install.

4.2 connect ankhsvn to the visualsvn Server

Run vs2010, tool-> Option-> source control, and operate

 

Confirmation completed.

In this case, you can see a new option in the File menu,

 

Click the first one to open a project from the server,

 

Select open project. A window is displayed,

 

Click OK to update the project to the local device.

4.3 common operations in project development

1. Update the project to a local device,

 

2. Lock the file to be modified,

 

You can enter prompt information,

 

3. After modifying the file, update it to the server,

 

Dialog box,

 

4. Unlock the modified file,

 

5. View historical versions,

 

6. Compare versions,

 

Click OK to compare the previous version

 

1.1svn and visualsvn

Visualsvn server2.5.6 (Version Control Server) Free Open Source Software

Is based on the Subversion server on Windows platform, it is free of charge

Official download:

Http://www.visualsvn.com/files/VisualSVN-Server-2.5.6.msi

Tortoisesvn1.7.9.23248 (Administrator client), Free Open Source Software

The SVN client subversion has two types of clients: web-based clients such as websvn and client software represented by tortoisesvn. The former requires the support of the Web server, and the latter requires the user to install the client locally.

Official download:

Http://cdnetworks-kr-1.dl.sourceforge.net/project/tortoisesvn/1.7.9/Application/TortoiseSVN-1.7.9.23248-win32-svn-1.7.6.msi

Toroisesvn Simplified Chinese package 1.7.9.23248

Official download:

Http://cdnetworks-kr-1.dl.sourceforge.net/project/tortoisesvn/1.7.9/Language%20Packs/LanguagePack_1.7.9.23248-win32-zh_CN.msi

Ankhsvn 2.4.20.10 (vs plug-in), Free Open Source Software.

Vs plug-in ankhsvn

Official download:

Http://ankhsvn.open.collab.net/files/documents/175/6483/AnkhSvn-2.4.11610.msi

Note:

Tortoisesvn is a Windows client of SVN that can manage almost all code. While ankhsvn is a vs-based plug-in that is only used to manage vs-related items, if you only use vs for a project, you can install ankhsvn + visualsvn server. On the contrary, if you do not use vs, you only need tortoisesvn + visualsvn server. If you want to use all of them, you need to install three.

2. visualsvn Server

2.1 install visualsvn Server

After the download, run the installation program of visual SVN server. The steps are as follows:

1. Install the first interface next.

2. Accept the license agreement next.

3. Select components,

 

4. Customize the installation and configuration,

 

5. install.

6. installation is complete. Next.

7. Complete installation,

2.2 configure and use the visualsvn Server

After the installation is complete, start the visual SVN Server Manager. The main interface is as follows:

 

2.2.1 to create a code library, follow these steps:

1. Create a code library,

 

2. code library configuration information,

 

3. OK. Creation successful.

2.2.2 code library Security Settings

To set security, follow these steps:

1. Create an account,

In this way, four accounts are created for coder, coder1, coder2, and coder3.

2. Add the account to the created codebase project,

 

In the same way, you can create a group, add a group of users to a group, and authorize the group.

3. tortoisesvn

3.1 tortoisesvn Installation

To run tortoisesvn, follow these steps:

1. Install the first interface next.

2. Accept the license agreement next.

3. Select the installation path, select all functions, and click Next.

4. Next until finish.

3.2tortoisesvn configuration and use

3.2.1 check in the Code to the svn server by performing the following steps:

For example, we created a vs project in the previous codebase code library, right-click the codebase folder,

 

1. Write the URL of the code library to the address displayed in the visualsvn server,

 

2. Click OK to bring up the form,

 

3. Click OK. A window is displayed when the operation is successful,

 

4. Click OK to complete the check-in.

3.2.2 check out the code library locally

The procedure is as follows:

1. Right-click the codebase file of the code library and select SVN checkout. The form is displayed,

2. I have exported D: \ repositories \ codebase. Click OK, enter the user name and password, and click OK.

Note:

You can enter the code library address in the browser to access the code library. In ie9.0, enter https: // local iPod/SVN/codebase/and https: // 2003 Server/SVN/ABC/ajax/can be used, while chrome 21.0.1180.83 can only be accessed using https: // native iPod/SVN/codebase/. I still don't know why. I have not installed other browsers, so I don't know what the situation is.

In addition, the checkout code just now is what our developers need to perform. Open it and you can see the status of each file,

You can view the status of each file in the icon set in the Settings dialog box of tortoisesvn. You can also customize the icon style here,

3.2.3 submit the modified file to the server

1. In the blank space of the modified file directory or in the parent folder of the modified file, right-click SVN commit ..., Pop-up form,

 

2. Click OK.

3.2.4 Add a new file to the server

1. Create a new class file in the local code directory, right-click tortoisesvn à add, select the new file, and click OK.

Note: At this time, the file is only marked as a file on the server and is not actually uploaded to the server. You can open the service file list in the browser to view the file you just created, to add files to the server, continue with the next step.

2. Right-click SVN commit… in the blank space of the newly created file directory or in the parent folder of the newly created file ..., Pop-up form,

 

3. Click OK. Refresh the browser to view the file you just created.

3.2.5 update the local code to be consistent with the latest version on the svn Server

This is also very simple. You just need to right-click the folder to be updated or right-click the blank space under the file and click SVN update.

Note: The update operation may fail due to version conflict. This can be solved by merging [merge] or other methods. It may also fail because the [get lock] is locked, you need to unlock [release lock] first.

3.2.6 rename a file or folder and submit the modification to the svn server.

Right-click the file or folder to be renamed, and click tortoisesvn => rename ..., Enter a new name in the pop-up form and click OK to press the button. This method does not directly rename the file or folder, but marks the name of the file or folder as the name after renaming. We also need to submit it to the svn server using SVN commit to rename it.

3.2.7 delete files or folders and submit the modifications to the svn Server

The easiest way is to directly delete files or folders and use SVN commit to submit updates to the svn server. Another method is to right-click the file or folder you want to delete> tortoisesvn => Delete to delete it. This method is not directly deleted, the state of the file or folder is set to delete. We also need to use SVN commit to submit it to the svn server before deleting it.

 

4. ankhsvn

4.1ankhsvn Installation

Download complete run AnkhSvn-2.4.11610.msi as follows

1. First Interface

 

2. Click Install.

4.2 connect ankhsvn to the visualsvn Server

Run vs2010, tool-> Option-> source control, and operate

 

Confirmation completed.

In this case, you can see a new option in the File menu,

 

Click the first one to open a project from the server,

 

Select open project. A window is displayed,

 

Click OK to update the project to the local device.

4.3 common operations in project development

1. Update the project to a local device,

 

2. Lock the file to be modified,

 

You can enter prompt information,

 

3. After modifying the file, update it to the server,

 

Dialog box,

 

4. Unlock the modified file,

 

5. View historical versions,

 

6. Compare versions,

 

Click OK to compare the previous version

 

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.