The popular collaborative management tools are probably SVN and git. Both of them have been used, but SVN is currently in use, so we will summarize the frequently used commands.
Both the windows SVN client and the eclipse subversion plug-in are interface-based operations. The command line operation commands in Linux are recorded here:
1) Search for help: SVN help
2) run the file checkout to the local directory: SVN checkout path (path is the directory on the server ). If you check out a project and use a new project name, you can use this statement: SVN checkout path (SVN: // 192.168.1.1/Pro/domain) newname
SVN Co
3) Add a file to the version Library: SVN add File
4) Submit the modified file to the version Library: SVN commit-M "Content abstract" file Abbreviation: SVN Ci
5) Lock and unlock: SVN lock-M "content" file SVN unlock File
6) Update to a specific version: SVN update updates the current directory; SVN Update-R 200 file restores file to version 200.svn Update file
7) view the file or directory status: SVN status path (the status of the files and subdirectories under the directory, the normal status is not displayed)
【? : Not under SVN control; M: The content is modified; C: A conflict occurs; A: It is scheduled to be added to the version Library; K: it is locked]
SVN status-V path information
8) delete the file: SVN Delete path-M "content"
9) view the log: SVN Log Path displays the modification record and version number changes.
10) view the file details: SVN info path
11) Differences: SVN diff path (compare the modified file with the basic version); SVN diff-r m: N path (compare the M and N versions of the file)
12) Merge the differences between the two versions into the current file: SVN merge-r m: N path usually produces a conflict and you need to handle it.
13) restore local modification: SVN revert cannot restore the deleted directory usage: Revert path
14) Add a project to SVN: SVN import projectname [url | filepath]
15) view the version number in time:
SVN log-r {2011-04-01 }:{ 2011-04-22}
16) branch and merge: In SVN, a project directory contains a master truck directory and a branch branches directory. Create branch: SVN copy [url] [url]
For example:
Svn cp http: // 59.251.189.152: 8989/SVN/Ron/trunk http: // 59.251.189.152: 8989/SVN/Ron/branches/branch1.2.68 _ renrendai
Copy the code in truck to a folder under branches, which is the new branch. In the future, you can check this branch when you checkout it, and the submitted code will be under this branch.
Merge:
SVN merge http://svn.example.com/repos/calc/trunk this is to merge the code in the main truck to the current branch; if you want to merge the current branch to the truck, and vice versa.
To be continued...