SVN is the abbreviation for Subversion , an open source version control system that uses a branch management system, a centralized version controller
Official website: https://www.visualsvn.com/
Download to the right of the server side, the left side of the client charges, we use TORTOISESVN instead of him can
TortoiseSVN:TortoiseSVN is a free open source client of Subversion version control system that can manage files and directories beyond the time. Files are saved in the central repository, and the repository is very much like a normal file server, except that you can remember every modification of the file and directory. You can restore files to a previous version, and you can check the history to see what changes were made to the data and who made the changes.
Official website: https://tortoisesvn.net/
Find downloads, download and install.
First, after the installation of automatic start, if not started, find the installation directory BIN\VISUALSVN server.msc Click Start svn Server.
For example, SVN server:
When the Little Turtle (TortoiseSVN) is installed, the right mouse button on the desktop will find SVN Checkout, TortoiseSVN
All right, 工欲善其事, its prerequisite, fix it.
Second, the next creation of the local warehouse
1, Create New Repository, the default unlimited next (warehouse name casual)
For example, my server-side warehouse Scales
2. Create User ... Enter a user name, password to create
The following is the creation of a good two user a B
3. Download the server-side warehouse to Local
right mouse button on the desktop SVN Checkout
Because I measured, is the client and server side on the same machine, so the URL fill 127.0.0.1 (local loopback) + installation directory + Warehouse directory (note: not the path), the actual development to write server-side IP and Server SVN directory + Warehouse directory (note: not the path)
Checkout directory is the local repository path, which you write according to your needs
Then click OK, enter the user name, password, click OK
After downloading, open the local warehouse, view: There is an. svn directory, if none, Show hidden folders to see
This associates the local warehouse with the server-side warehouse, enabling centralized version control of the project.
4, submit the project to the server warehouse
In the local warehouse new first.html, in the local warehouse directory, the right mouse button in the white space , SVN Commit ...
(Here you see SVN update, its function is to update the Server warehouse project files to the local directory, is called to work after the update, before work commit, of course, have to choose the operation, meaning only to operate their own files)
Select the project you want to submit (remember to choose your own project files, others can not choose)
The big white space below (recent messages) is used to write comments, for example, what do you do this step, why do you do this to make it easier for future projects to see the log file
OK, go to the server warehouse to view the submitted items, do not see the words remember scales (server-side warehouse) on the right-click Refresh
5, FAQ Summary:
Clear data (user data, note: Do this step if necessary, not required)
right mouse button Tortoisesvn->settings->saved-data->clear ...
For example, if we have a problem with the project, we need to roll back to the previous version
You can right-click to find show log
Revert For example, after a lookup day, you can choose to fallback to a version, Revert
Of course, you can also update the server-side files to compare. To prevent overwriting, remember to rename
As below, I rename the local file, and then update the server-side code down, the two files are all selected (hold down the CTRL key, the mouse can select multiple files), the Diff tool to compare two files
Of course, you can also use the diff comparison feature in the log (show log)
Follow-up discovery of new issues continues to complement
Summary of installation, use, and FAQs for SVN centralized version controllers