Hello Friends đź‘‹,

Welcome To Infinitbility! ❤️

This article will help you to install, setup, and use svn on ubuntu, here we you will clear step to manage project using SVN in ubuntu.

Here something more about SVN

Apache Subversion is a software versioning and revision control system distributed as open source under the Apache License. Software developers use Subversion to maintain current and historical versions of files such as source code, web pages, and documentation.

Let’s start today topic SVN tutorial for ubuntu

This article provide commands with example to use svn to done your project workflow, like clone or checkout your repo, revert to back, get updated code, and commit your changes.

SVN stands for Subversion

Table of content

  1. Setup or Installation
  2. SVN checkout
  3. SVN update
  4. SVN status
  5. SVN add
  6. SVN revert
  7. SVN commit

Setup or Installation

Here, we use apt-get package installer for install svn in ubuntu. Install subversion to use svn in ubuntu. Use below command to install.

sudo apt-get install subversion

SVN checkout

SVN checkout command use for clone or download code from your svn to your machine.

sudo svn checkout http://svn-repo-url

After checkout SVN ask for username password to verify you.

SVN update

SVN provide update command to download update code from SVN repo.

We have to just navigate to our project folder and enter svn update command like below.

sudo svn update

SVN status

SVN provide status command to track your changed files list.

When you want to check files you changed in your local then use status command like below example.

sudo svn status

SVN add

SVN provide add command to add new file in your repo. If you create new file and want to send changes to svn repo then first you have to add files using below command.

svn add YOUR_FILE_PATH

SVN revert

SVN provide revert command to remove your latest changes done on your local machine or other place apart from SVN repo.

Basically, SVN revert remove your latest changes and back to your last updated code

sudo svn revert filename

SVN commit

SVN commit use for send or save changes to your SVN repo, you have to write appropriate message for your changes and press enter.

svn commit -m "your message"

Thanks for reading…