Linux system svn operation example

  

Before the small series introduced the svn command to everyone, can not read the Linux SVN tool command summary, today Xiaobian to introduce to you is the use of svn in the Linux system and svn Related operation examples, interested friends can come to understand.

1, the checkout files to a local directory

svn checkout path (path is a directory on the server)

For example: svn checkout svn: //192.168. 1.1/pro/domain

Shorthand: svn co

2. Add a new file to the repository

svn add file

For example: svn add Test.php (add test.php)

svn add * .php (add all php files in the current directory)

3. Submit the changed files 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 ci

4, lock/unlock

svn lock -m “ LockMessage &rdquo ; [ --force ] PATH

For example: svn lock -m “ lock test file ” test.php

svn unlock PATH
12 next page total 2 pages

Copyright © Windows knowledge All Rights Reserved