SVN common commands summary

SVN common command summary directory


Preface

  • This article is only a SVNcollection of record commands

Recommended reading

  • "SVN Definitive Guide"

1. Create a repository

svnadmin create [path]

2. Start the server

svnserve -d -r xxx\subversion

netstat -ano | findstr 3690: Check if it is activated

3. Start the service

sc create MySVNService binpath='xxx\svnserve.exe --service -r [path]' start=autodepend=Tcpip

4. Take out the warehouse

svn checkout svn://localhost/xx

5. Add files

svn add [filename]

6. Submit changes

svn commit -m "xxx" [filename]

7. Update version

svn update

8. Server deployment

LINUXsurroundings

1. Download

yum -y install subversion

2. Make a warehouse catalog

  1. mkdir -p /var/svn/repository
  2. cd /var/svn/repository
  3. mkdir pro_a

3. Create SVNRepository

svnadmin create [path]

4. Connect

svn://ip:3690/pro_oa

5. View service

chkconfig | grep svn

6. Open

chkconfig svnserve on

7. Corresponding script location

/etc/rc.d/init.d/svnserve

8. Service Configuration

args="--daemon --root/var/svn/repository --listen-port 3690 --pid-file=${pidfile}$OPTIONS"

9. Start up and run

service svnserve start

servei svnserve status

netstat -anp | grep 3690

10. Add files

svn add [filename]

11. Add the entire directory

svn add

12. Submit

Additional log information:svn commit -m "message" [filename]

13. Changesconf

anon-access = write

  • Allow anonymous submission of information

14. View submitted file information

svn list svn://ip:port/dir

15. Take out

svn checkout svn://ip:port/dir

16. Update files

svn update [filename]

17. Update all

svn update

18. View file information

svn info [filename]

Guess you like

Origin blog.csdn.net/u013362192/article/details/114261923