SVN is a source code version control tool that uses the command line on the server. The following small series will summarize the common SVN commands and unusable commands in Linux, so that you have a detailed understanding of SVN commands. .
Subversion files stored in a central repository, the repository much like an ordinary file server. The difference is that it can record every file and directory modification, so that when the required rollback, the data is restored to the previous version, and the details of the data changes can be viewed.
First, SVN common commands
1, checkout the file to the local directory
svn checkout path (path is the directory on the server)
shorthand: Svn co
2, add a new file to the repository
svn add file
3, submit the changed file to the repository
svn Commit -m “LogMessage” [-N] [--no-unlock] PATH (use –no-unlock switch if hold lock is selected)
Shorthand: svn ci
4, lock /unlock
svn lock -m “LockMessage” [--force] PATH
svn unlock PATH
5, update to a version < Br>
svn update -rm path
shorthand: svn up
6. View file or directory status
1)svn status path (files and subdirectories under the directory) The status of the directory, the normal status is not displayed.)
2)svn status -v path (display file and subdirectory status)
Shorthand: svn st
7. Delete the text
svn delete path -m “delete test fle”
shorthand: svn (del, remove, rm)
8, view the log
svn Log path
9, view file details
svn info path
10, compare differences
svn diff path (modified file and basic version Compare)
svn diff -rm:n path (comparison between version m and version n)
shorthand: svn di
11, between the two versions Merge differences to current file
svn merge -rm:n path
12, SVN help
svn help
svn help ci
Second, SVN is not commonly used commands
13, the list of files and directories under the repository
svn list path Show all files and directories belonging to the repository under the path directory: svn ls< Br>
14. Create a new directory under version control
svn mkdir: Create a new directory under version control.
Previous12Next Total 2 Pages
Linux system operation, Logrotate is a log management tool, can handle Linux logs, you need to confi
When you use the X11 forwarding option of SSH to connect to the remote connection,
Firefox is a browser that users like very much on Linux systems, but Firefox often has garbled chara
Redis is a key-value storage system, somewhat similar to Memcached, but more practical than Memcache
Linux compiler link undefined reference 'dlclose' how to do?
How to install virtualization tools in Linux llibvirt
Linux installation of PCNS software
Linux prompts gzip:stdin:not when extracting tar.gz file?
Linux system uses commands to maintain RHCS method
Linux how to create and delete swap partitions
Linux to create file or directory soft links, hard link skills
What should I do if the Linux boot file rc.local cannot be executed?
How to modify the SSH port number in Linux?
Techniques for setting up multiple network cards as virtual network cards under Linux
Add Hyper-V components to Windows Server 2008
Win10 Spartan browser final name - Microsoft Edge
An alternative to Windows XP's secret
Win10 automatic connection broadband setting method
Vista Quick Cleanup Notification Area Icon
Graphical tutorial for adding language packs to Win8.1 system
Windows 8 system tips for saving battery power
How to completely shut down user account control in win8 system
How to go directly to the desktop when Win8 starts over the Metro interface