Version control software: TortoiseSVN quickly get started

Source: Internet
Author: User
Tags svn update tortoisesvn

Baidu Encyclopedia for SVN a little explanation:

    TortoiseSVN是Subversion版本控制系统的一个免费开源客户端,可以超越时间的管理文件和目录。文件保存在中央版本库,除了能记住文件和目录的每次修改以外,版本库非常像普通的文件服务器。你可以将文件恢复到过去的版本,并且可以通过检查历史知道数据做了哪些修改,谁做的修改。这就是为什么许多人将Subversion和版本控制系统看作一种“时间机器”。

Long before the installation of SVN, but a long time to be forgotten, feel it is necessary to master the use of version control software, so learn the online introduction of SVN tutorial, simple operation and record the important steps, here need to thank enthusiastic netizens relevant information. Software download is very simple, into the http://tortoisesvn.net/search to find.

one. Build SVN repository under Windows

1. Select the place where you want to place the repository (I choose C, the following paths are in accordance with the C drive). You need to create a new folder on the C drive and name it svntest.

2. Select the Svntest folder, right click on the mouse and select Tortoisesvn->create repository here.

3. The following window will pop up and click OK so that the SVN repository has been successfully established.

Two. Create a working directory

Referring to the explanation on the Internet, the working directory is actually the place where the work files are normally stored. Usually we wait for a paragraph of our work to make a backup. So we usually work under the working directory and wait until the appropriate time to commit the code to repository.

1. Here also set the path of the working in the C drive, create a new document and name the core working.

2. Select the core working folder, press the right mouse button and select svn checkout.

3. Pop up the following interface, in the URL of repository fill in the location of repository, my settings are file:///C:/SVNtest, various URL format fill in the following:
file:///disk drive |/repository Directory/Sub-directory
HTTP//Account @ Server name/Repository directory/Sub-directory https://account @ server name/repository directory/subdirectory svn+ssh://account @ server name/Repository directory/Sub-directory

4. Under Checkout directory, fill in the location of the working directory, such as C:\core working, then click OK.

5. The above steps succeeded, and then to the newly created directory, the core working folder hit a tick, and enter the folder can be seen under the directory of a directory called. SVN (this directory is hidden, if your file administrator does not have the ability to see the hidden directory, you will not be able to see it).

three. Add files and directories to Repository

1. Once the above steps are successful, you can start developing a new program. The program that is developed here is stored in the Colordetect subdirectory under the core working directory.

2. Now you are ready to put the completed package in the SVN repository. Select the Colordetect folder where the code resides, right-click, and select Tortoisesvn->add ...

3. Then TortoiseSVN will pop up the file and directory to be added, which tick is waiting to be added to the repository. If you have certain files or directories that you do not want to join this time, you can leave this item unchecked.

4. Click OK, the following window appears, indicating the successful addition of files in repository. However: This add does not really put the file in the repository, but tells SVN to be ready to put the files in the repository. At this point, if you view these files through your profile administrator, you will see a white red exclamation mark below the icon.

5. The above steps have been completed, but the content in our core working directory is not synchronized with the content in repository. Further action is required: Right-click on the Colordetector folder icon and select SVN commit.

6. An interface appears, listing a list that lets you choose which code or document to commit to Repository. If there is a file that does not want to commit to repository at this time, you can cancel the selected file. Above the list of files is the message column, where you can enter the purpose of this commit.

Click OK after selecting, Complete!

7. You can return to the Colordetector directory, you can see the selected file icon is added a tick:

Four. Update code data and catalogue

1. To ensure that the files in your working directory are synchronized with the files in the repository. It is recommended that you update the action before editing. With the above steps complete, you now need to update the directory where a check out has been made. Right-click on the icon for the file or directory you want to update and select SVN update.

pops up an interface that shows which files are being updated. If you do not see information about the update of the file, it means that the files in the directory are already up to date.

2. Update to a specific version

When we need to update the code to a specific date or version, do the following: Right-click on the file or directory icon you want to update and select Tortoisesvn->update to revision.

The following update window pops up, where you can choose to update to the latest version (HEAD). You can also choose to update to a specified version (Revision). If you can't remember the correct version number, you can also recall when the code was updated, and by pressing the Show Log button, you can find the previously changed version.

The use of the software also requires a long period of research and learning ...

Version control software: TortoiseSVN quickly get started

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.