SVN Tutorial for Beginners

The Subversion (SVN) is an open source version control software

SVN Installation

You can download svn from the official website of TortoiseSVN or by using your company’s software installation system or tool in which it is listed.

Different features of SVN:

  • Creating a repository
  •  Importing a project
  • Checking out a working copy
  • Making changes to the local working copy
  • Adding more files
  • Committing the changes

Creating a repository

To create a local repository, once you install TortoiseSVN in your machine,

  • create a local folder in any name for repository such as “MyRepository”.
  • Right click on it ->TortoiseSVN->Create a Repository here. Select this option.
  • It will show the repository path
  • Click on “create folder structure” option and click “OK”
  • Default directory structure successfully created

Now the MyRepository folder will show a number of sub folders

  • conf
  • db
  • hooks
  • locks
  • format
  • README.txt
  • svn.ico

Importing a Project to Repository

  • create a local folder name “Project1”
  • put few test files in it with some entry
  • Now right click on folder “Project1” ->TortoiseSVN->Import->Give repository URL and put the message
  • Click on “OK” and it will import
  • You can now open the MyRepository via TortoiseSVN, give url and then check the files are copied to this repository.

Checking out a working copy

  • Go to repository via TortoiseSVN
  • Select the path of a folder or file for which you want to create a working copy in URL of repository option
  • Provide local Checkout directory path /../Project1-workingcopy and select ‘ok’
  • It will create a working copy locally as Project1-workingcopy
  • In this working copy, you can make changes and again commit to the repository

Commit working copy to repository

  • Right click on the working copy
  • Select SVNCommit->
  • Put some details in the message segment
  • Click on “OK” to commit to repository