SVN client configuration on Linux

How to install and configure svn client on linux and useful commands

 

SVN is a part of Software Development Life Cycle (SDLC). SVN server is required to manage source code version in the development environment, CollabNetSubversionEdge is open source (freeware).

CollabNetSubversionEdge support of variety of Operating systems like Linux, Solari & Windows.

svn server :svn.demo.com(NetSubversionEdge Server )
svn client:subversion

How to install and configure svn client on linux

SVN client commands to checkout, update, commit, add, delete and many more.
Install svn client software package on a Linux machine, in our example we are using centos 6.4 32bit operating systems.

Querying package manager to confirm subversion package installed or not.

#rpm -qa |grep subversion 

Install the subversion package using yum repository.
#yum install subversion

Install the subversion package using yum repository.
SVN client help will list you all the option can be used to communicate SVN server.

#svn help 

Let’s create a repository in SVN server, to refer svn server installation and configuration watch this video:
SVN repo: test
svn user:test1

Check out the svn repository using checkout or Co using svn command option. Very first time you have to check out the svn repository to the source directory.
#mkdir /demo
#cd /demo 

#svn checkout http://svn.demo.com:18080/svn/test/trunk project1 –username=test

OR

#svn co http://svn.demo.com:18080/svn/test/trunk project1 –username=test

Note: SVN repo directory structure (Trunk,Branch,TAG). The developer will commit the source code to trunk.
Project name: if you don’t specify project name, then it will use the trunk as a target folder name.
Add and commit new files to SVN repository http://svn.demo.com:18080/svn/test/trunk/
Let’s create empty files(test1,test2 & test3) using touch command.

[root@svn demo]cd project1 
[root@svn project1]#touch test1 test2 test3

Add test1, test2 and test3 to repository

[root@svn project1]#svn add test1 test2 test3 

SVN commit
[root@svn project1]#svn commit 

OR

[root@svn project1]#svn commit -m “test1 , test2 and test3 commit” test1 test2 test3 

SVN Delete, remove a file from SVN repository
[root@svn project1]#svn delete -m “deleting the file test3″ http://svn.demo.com:18080/svn/test/trunk/test3 –username=test <-

SVN commit
[root@svn project1]#svn commit –username=test

SVN log, show all transactions.
[root@svn project1]#svn log –username=test 

SVN status, show the status of the SVN repository.
[root@svn project1]#svn status –username=test 

Watch, How to install and configure svn client on linux

Both comments and pings are currently closed.

Comments are closed.

Copyright ©Solutions@Experts.com
Copyright © NewWpThemes Techmark Solutions - www.techmarksolutions.co.uk