SVN is a very convenient tool for managing Code. It is widely used in project collaboration and management. Similarly, it is very powerful to manage your code using SVN. Although there are a lot of free SVN servers on the Internet, if you want to manage your own private code, or the code you are writing in learning, and do not want to expose it to the public, it is useful to create a private SVN server. There are many advantages, such as the code you wrote on the company's computer. When you go home, you can use your computer to continue the test. If you use a USB flash drive, it is very troublesome, and the security is not high. Therefore, if we can use the popular cloud storage, we can synchronize our code to the online disk in real time, when I got home, I was synchronizing it. Soon it was very convenient. So I thought about the idea of using SVN and online storage to build the svn server. OK. I don't have to talk about it. Let's start now.
In fact, the idea is very simple. It is to use the visual svn-server to create an SVN server on the local machine and set the server's code library directory to the synchronization directory of Baidu cloud disk. It's easy to understand...
First, let's talk about the tools used:
1. subclipse
Because I am a Java programmer and usually use eclipse for development, I will directly use the svn plug-in subclipse on Eclipse. I will not detail the installation. You can check it yourself and use tirtoisesvn as well.
Http://subclipse.tigris.org/servlets/ProjectProcess? Pageid = p4wyua
2. SVN server software visualsvn-server, http://www.visualsvn.com/server/download,
3. Cloud synchronization disk. I am using Baidu cloud: http://pan.baidu.com/download. I can remember to download a synchronization disk. Of course I can also use it, such as Kingsoft kubernetes.
OK. You have it all done. Let's get started! The procedure is as follows:
1. Install Baidu cloud synchronization Disk
Before installation, create an empty folder on your hard disk as a synchronization folder. For example, if I created F: \ proj_adu, it is very easy to install Baidu synchronization disk, select the synchronization directory and select the created folder F: \ proj_adu. You do not need to select the directory on the cloud.
Ii. Test
To facilitate management on the cloud disk, I will create a folder under F: \ proj_adu as the directory for storing the project. You will see the green check mark, indicating that the folder has been synchronized to the network disk, log on to Baidu cloud on the webpage and find that the website already exists.
3. Install visualsvn-Server
The process is very simple. Just click Next. The code library directory (repositories) selects the F: \ proj_adu \ proj we just created. For detailed steps, refer
Create new repository, create a new code library, name it, select empty repository, right-click the code library you created, select copy URL to clipboard. Copy the URL of the code library.
4. configure a Resource Repository in eclipse
Open eclipse, select the project to be synchronized, right-click team, select share project, SVN, and next, and select the location where the new resource library is created, crtl + V, and finish. OK. All done. Right-click the project file and select team. You can submit the file.
5. Synchronize files on another machine
Install Baidu cloud and visual svn-server on a computer, and set the code library of visual svn-server as the synchronization directory of the synchronization disk to synchronize the projects on the network disk.
Note: When synchronizing data for the first time on another computer, it is best to pause cloud synchronization now, and then create a code library with the same name as the original synchronized repository code library, and then enable synchronization.
Use visualsvn-server and cloud sync disk to build your own SVN Server