* Verify that SVN is successfully installed: svnadmin -- version
* Create a SVN data warehouse: svnadmin create E: \ repository \ SVN \ usst
* Start the svn service: svnserve-d-r e: \ repository \ SVN \ usst single repository startup
Svnserve-d-r e: \ repository \ SVN multi-warehouse startup is recommended to use multi-warehouse"
* Verify that SVN is successfully started: netstat-An to check whether port 3690 is occupied
* Client checkout (checkout) file: SVN checkout SVN: // ip: Port/repname.
* Add local files to Version Control: SVN add filename
* Submit the local file to the server: SVN commit-M "message" filename
* Update files from the server to local: SVN update [filename]
* Delete a local file: SVN Delete filename
* File recovery: SVN revert filename Note: Revert can only restore uncommitted operations
› * SVN Info-displays local or remote entries
› * SVN list-list the entries in the version library directory
› * SVN status-view the current workspace status
› * SVN help-Get help information
* Register the svn service as a Windows system service: SC create svn-service binpath = "" D: \ Program Files \ subversion \ bin \ svnserve.exe -- service-R D: \ repository \ SVN "" displayname = "" svn-service "" Start = auto depend = TCPIP
SVN directory Specification
Create three top-level Directories
/Trunk stores the development "Main Line"
/Branches stores branch copy
/Tags store tag copies
SubversionProvides the main line and branch management technology, this makes it easier and flexible to manage the project progress, version release, version maintenance, and software function expansion and customization in software development.
Main Line(Trunk): A project exists when it is created and continues to grow along with the growth of the project until the project is completely completed.
Branch(Branch): It generally refers to the function branch. For example, if a module needs to be added to a project, the module is complicated and difficult to implement. In order not to affect the stability of the main line, we can create a function Branch to develop this module. After this module is developed, it passes various tests of the testing department, then merge to the main line. For example, our traffic policeGPSThe project has been developed, but it is for the Quanzhou traffic police. Now we have received another traffic police project, but it is for the Xiamen traffic police brigade. Now, the Xiamen traffic police brigade asked us to customize some features for them. We do not want to modify the main line any more. At this time, we can create a branch and develop it on the Branch. This will not affect the main line. After the development is completed for Xiamen, we find that some of the features they require are actually very good, and the same functions may be needed elsewhere. At this time, we can combine useful modules into the main line based on our needs.
Tag (TAG) : A tag is also a directory like a branch, but it generally stores published information. ( Of course, we can also use only the branch, but it is clearer to use labels. ) . Let's take our traffic police project as an example: after our traffic police project is developed, it will be used by the Quanzhou traffic police brigade, that is, it will be released. (Release) Assume that this version is called 1.0.2 . At this time, we will create a tag. When the Quanzhou traffic police brigade spent three months, we found Bug , We only need to check out the code in this label ( It is exactly the same as what we provided to the Quanzhou traffic police brigade. ) , Debug and correct this Bug . Then release a version, which is called 1.1.0 At this time, we are creating 1.1.0 Label ......
Note that the code in the label directory must be strictly controlled, except for correction.BugAnd cannot do anything else.
Tortoisesvn is a free open-source client of the Subversion version control system. You do not need to pay for it. The tortoisesvn icon is as follows:
Integration of SVN and myeclipse
Download the site-1.6.13.zip file from the official website on subclipse.tigris.org,
2. decompress the features and plugins folders and copy them to E: \ myeclipse \ myplugin \ SVN. Do not use other *. XML files.
3. Create the svn. Link file under E: \ myeclipse \ myeclipse8.5 \ dropins. The file content is: Path = E: \ myeclipse \ myplugin \ SVN to save.
4. Delete the E: \ myeclipse \ myeclipse8.5 \ Configuration \ org. Eclipse. Update folder.
5. Restart myeclipse and everything will be normal.