Summary of SVN usage in Linux
A recent project is inconvenient to Check local data and needs to be written and tested on the test server. So I studied how to use SVN in the Linux Command Line.
First, you can see all the commands supported by svn in svn help:
There are not many commands. If you have used the Tortoise SVN client, it is literally not difficult to understand the meaning of these commands.
First, I need to Checkout my project. The command used in this process is svn checkout or svn co
Is the execution process. When the first prompt is displayed, the user name used to log on to the system will be used. Press enter to enter your own user name and password. Then the download process is complete.
Code submission
After modifying the code, you need to submit the code to SVN. In this case, you need to use the svn commit/svn ci Command. When submitting a request, it is best to use-m with comments to facilitate future viewing.
Update files
Before coding, you should update the code to see if other people have modified the code. The update command is svn update/svn up.
You can switch to the directory you want to update and directly execute svn update without having to specify a specific file or directory. You can also specify the file or directory to be updated.
View logs
This feature is especially useful when you discover code changes and need to know which changes are made, provided that every update is commented out.
Run the command svn log:
[Root @ localhost config] # svn log config. php
------------------------------------------------------------------------
R79832 | shiqiang | 2010-06-29 11:16:35 + 0800 (Tue, 29 Jun 2010) | 1 line
Change Config
------------------------------------------------------------------------
R76996 | shiqiang | 2010-06-22 13:51:33 + 0800 (Tue, 22 Jun 2010) | 1 line
Active $ Id $ s
Basically, these two common SVN commands can be started, but SVN is actually very powerful. In terms of DIFF and Conflict processing, we have not studied how to solve it in Linux, the Tag and Branch functions are also available. SVN provides a good tool for project management.
Articles you may be interested in
- Graphic tutorial on common basic commands in Unix/Linux
- Eight typical Linux operating system applications
- Install and use Sphinx in windows [Chinese full-text search is supported]
- How to modify IP address, gateway, and DNS in Linux Command Line
- How to run php files in the command line in windows
- Linux Command file directory management cat command
- Steps for synchronizing and backing up mysql Databases in windows
- Run the doscommand in Windows to view the program that occupies port x.