1, checkout the file to the local directory svn checkout path (path is the directory on the server) For example: svn checkout svn://192.168.1.1/pro/domain shorthand: svn co2, add new files to the repository Svn addfile for example: svn add test.php (add test.php) svn add*.php (add all php files in the current directory) 3. Submit the changed file to the repository svn commit -m "LogMessage"[- N][--no-unlock] PATH (if you choose to keep the lock, use the --no-unlock switch) For example: svn commit -m "add test file for my test" test.php shorthand: svn ci4, plus Lock/unlock svn lock -m "LockMessage"[--force] PATH For example: svn lock -m "lock test file" test.phpsvn unlock PATH5, update to a version svn update -rm path eg svn update if There is no directory behind, and all files in the current directory and subdirectories are updated to the latest version by default. Svn update -r 200 test.php (restore the file test.php in the repository to version 200) svn update test.php (update, sync in the repository. If the prompt expires when submitting, it is because of conflict, need First update, modify the file, then clear svn resolved, and finally submit commit) shorthand: svn up6, view file or directory status 1) svn status path (the status of files and subdirectories under the directory, normal status is not displayed) [?: not Svn control; M: content is modified; C: conflict occurs; A: scheduled to join the repository; K: locked] 2) svn status -v path (display file and subdirectory status) the first column remains the same, The second column shows the working version number, and the third and fourth columns show the last modified version number and the modified person. Note: The three commands svn status, svn diff, and svn revert can be executed without a network because svn keeps the original copy of the local version in the local .svn. Shorthand: svn st7, delete file svn delete path -m "delete test fle" For example: svn delete svn://192.168.1.1/pro/domain/test.php -m "delete test file" or directly svn delete test .php and then svn ci -m 'delete test file‘, it is recommended to use this shorthand: svn (del, remove, rm) 8, view the log svn log path For example: svn log test.php shows all the modification records of this file, And the change of version number 9. View the file details svn info path For example: svn info test.php10, compare the difference svn diff path (compare the modified file with the base version) For example: svn diff test.phpsvn diff -rm:n Path (comparison between version m and version n) For example: svn diff -r 200:201 test.php shorthand: svn di11, merge the difference between the two versions into the current file svn merge -rm:n path eg svn Merge -r 200:205 test.php (merge the difference between version 200 and 205 into the current file, but generally there will be conflicts, need to be dealt with) 12. SVN help svn helpsvn help ci-------- ----------------------------------------------- ----------------------- The above are commonly used commands, the following write a few not often used -------------- -------------------------------------------------- --------------13, the file and directory list under the repository svn list path shows all the files and directories belonging to the repository under the path directory: svn ls14, created under version control New directory svn mkdir: Create a new directory under the version control. Usage: 1, mkdir PATH...2, mkdir URL... Create a version control directory. 1. Each directory specified by the working copy PATH will be created on the local side and added to the new schedule for the next commit. 2. Each directory specified by the URL will be created by submitting it immediately to the repository. In both cases, all intermediate directories must exist beforehand. 15. Restore local modifications svn revert: Restore the original unchanging working copy file (recover most of the local modifications). Revert: Usage: revert PATH... Note: This subcommand does not access the network and will resolve the conflict. But it does not restore the deleted directory. 16. The codebase URL changes svn switch (sw): Update the working copy to a different URL. Usage: 1, switch URL [PATH]2, switch --relocate FROM TO [PATH...]1, update your working copy, map to a new URL, its behavior is similar to “svn update” The files on the server are merged with the local files. This is the method of mapping a working copy to a branch or tag in the same repository. 2. Rewrite the URL metadata of the working copy to reflect the changes on the simple URL. Use this command to update the correspondence between the working copy and the repository when the root URL of the repository changes (such as the schema name or host name changes), but the working copy is still mapped to the same directory in the same repository. 17. Resolve conflicts svn resolved: Remove the "conflict" status of the directory or file of the working copy. Usage: resolved PATH... Note: This subcommand does not resolve conflicts or remove conflict tags by syntax; it simply removes the conflicting related files and then allows PATH to commit again. 18. Output the contents of the specified file or URL. Svn cat target [@version]... If a version is specified, it will be looked up from the specified version. Svn cat -r PREV filename > filename (PREV is the previous version, you can also write the specific version number, so the output can be submitted)
Many beginners linux childrens shoes application have this experience, when I first contacted Linux,
Using a Linux terminal is more than just entering commands. After learning these b
How do I view all running processes in Linux? You can use the ps command. It can
In todays increasingly prominent network security issues, how to ensure the security of Ubuntu syste
Linux operating system static routing setup skills introduction
The role of CTRL+Z when running commands under Linux operating system
Set the script to self-starting under Linux system
Tips for using the camera on the Linux operating system
How to check the shell type used by the Linux operating system
Linux update and query command chkconfig details
CentOS Linux program self-start script
Linux system to identify file types File Commands
Disk mounting under Linux and using parted to mount disks larger than 2T
Linux server system command ac command
Linux system management and maintenance - date command
Establishing GPRS wireless Modem dialing method under Linux system
How does the Win8 system open the task manager?
How to remove the temporary skills generated during the software installation process
Win8 wireless network limited or no connection solution
Win7 system can not play QQ game solution Fix the game blue screen graphic tutorial
Summary of some issues about VMware not completely uninstalled
Commonly used PDF to Excel method recommended
Win10 official version does not receive the 10586 version of the update push how to do?