1. SVN installation
2. SVN server directory structure, users and permissions
- Repository: Store project files managed by svn, which can store code, documents, etc.
- Standard folder structure of the warehouse
- branches: Store the code that has not yet been determined to facilitate modification and testing. When the code is stable and determined, it will be merged into the trunk.
- Tags release: different versions of the code released.
- trunk: The main development directory.
- Standard folder structure of the warehouse
- User: Create and edit users.
- Create an account for each developer and set the corresponding permissions.
- Groups: Create and edit user groups.
- Combine several users into a group to facilitate management and permission assignment.
3.Svn client commonly used commands
- checkout: the first download, the first link to the svn server to download the corresponding warehouse data.
- Commit: Submit the local warehouse to the svn server warehouse, and the submission needs to be described.
- add New: Add data to the local warehouse.
- update Update: Update the local data, download the different parts of the server warehouse from the local, and will not change the local and server warehouse parts.
- dalete delete: delete svn data.
- revert: Download the code of the specified version to the local.
ps: During development, before submitting code to the server, try to update as much as possible to avoid code conflicts.
4. Common operations of svn client
- Download the file with the specified version number: right-click svn tool->show log->select file->right-click save as
- Code comparison tool: right-click svn tool->show log->select file->double-click
- Save and log out of the account: log out: right-click the svn tool->Settings->Saved Data->click Clear all of Authentication data
- Check out according to version: When checking out, select Revision in Revision below, select show log, and then select the desired version.
Source: SVN version control tool-siki college