Linux SVN command

Source: Internet
Author: User

Add your own

 

1. Create a project

Svnadmin create/var/SVN/repos/Server
SVN import/home/yqliu29/Server File: // var/SVN/repos/Server-M "first import"

2. Check out the project
SVN Co http: // 192.168.61.79/repos/Server

3. Add a file or folder
CP/home/yqliu29/Main. C ./
SVN add main. c
 
4. Submit changes
SVN commit-M "add main. c"

5. view the local or network SVN project directory
SVN list http: // 192.168.61.79/repos/Server
SVN list-V http: // 192.168.61.79/repos/Server

7. view the content of a file on the network SVN Server
SVN cat http: // 192.168.61.79/repos/Server/Main. c> main. c
This command can save main. C on the svn server to main. C in the current directory.

8. Check out a project file of a specific version.
SVN Co http: // 192.168.61.79/repos/Server-R 4

9. Change the existing project file to a specific version.
SVN Update-R 4

10. delete a file or directory
SVN Delete browser. c

11. view the svn project in the current directory or network
Svn-V status

12. view the update details of the project.
SVN log
SVN log http: // 192.168.61.79/repos/Server

13. Update only one file
SVN update main. c

 

14. Change the library address

SVN sw -- relocate http: // 192.168.61.79/repos/Server

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.