Difference between revisions of "SVN Tutorial for Ubuntu"

From Macro Wiki
Jump to: navigation, search
Line 1: Line 1:
 
This page contains the principal commands to use SVN in Ubuntu.
 
This page contains the principal commands to use SVN in Ubuntu.
  
=== Install ===
+
== Install ==
  
 
To install the SVN on Ubuntu, use the following command
 
To install the SVN on Ubuntu, use the following command
Line 7: Line 7:
 
     sudo apt-get install subversion
 
     sudo apt-get install subversion
  
=== Getting Project Repository ===
+
== Getting Project Repository ==
  
 
After installing the SVN, you need to get the repository that you want to track.  
 
After installing the SVN, you need to get the repository that you want to track.  
Line 24: Line 24:
 
this will create a folder called "littlejohn" in your current folder.
 
this will create a folder called "littlejohn" in your current folder.
  
=== Bring it up to date ===
+
== Bring it up to date ==
 +
 
 +
To update your repository, you just need to do
 +
 
 +
    svn update
 +
 
 +
from the repository folder.
 +
 
 +
== Commit your changes ==
 +
 
 +
If you have made changes to your repository and want to bring it to the central repository, you just need to do
 +
 
 +
    svn commit -m "your message"
 +
 
 +
== Add a new file ==
 +
 
 +
To add a new file to your repository, just do
 +
 
 +
    svn add YOUR_FILE_NAME
 +
 
 +
Do not forget to commit your changes after adding the file/folder.

Revision as of 11:44, 4 September 2017

This page contains the principal commands to use SVN in Ubuntu.

Install

To install the SVN on Ubuntu, use the following command

   sudo apt-get install subversion

Getting Project Repository

After installing the SVN, you need to get the repository that you want to track. Go to the macros@ufmg's repository and choose which repository you want to. For example, if you want the Little John's repository, go to the Little John's page and get the link.

Littlejohn svn.png

Then you only need to do

   svn checkout LINK YOUR_FOLDER

For example:

   svn checkout https://svn.code.sf.net/p/macroufmg/littlejohn/mobilemanipulator/ littlejohn

this will create a folder called "littlejohn" in your current folder.

Bring it up to date

To update your repository, you just need to do

   svn update

from the repository folder.

Commit your changes

If you have made changes to your repository and want to bring it to the central repository, you just need to do

   svn commit -m "your message"

Add a new file

To add a new file to your repository, just do

   svn add YOUR_FILE_NAME

Do not forget to commit your changes after adding the file/folder.