Subversion or SVN, Basic Tips for Beginner

Been using svn for years, but always couldn’t remember what are the steps for setting it up. Better put this down here, for my future reference and sharing with people who would like to start using subversion (svn). Lets start now;

Creating Subversion SVN repository

Start creating your svn repo by this command;


svnadmin create $SVNREP_DIR/project-name

Creating trunk, tags and branches directory


svn mkdir -m "trunk creation" file:///$SVNREP_DIR/myproject/trunk
svn mkdir -m "tags creation" file:///$SVNREP_DIR/myproject/tags
svn mkdir -m "branches creation" file:///$SVNREP_DIR/myproject/branches

I believe you already have your project in a working directory, import it into your svn repo;


svn import -m "importing my project" $PROJECT_DIR/project-name file:///$SVNREP_DIR/project-name/trunk

Now you have done the setup of your repository for your new project, to build a working copy of svn on your machine, start checking out the code into your working directory.


svn co file:///$SVNREP_DIR/project-name/truck $my_project_directory

This is the basic code repository setup for with svn.

Related posts:

  1. MySQL 5 Server Cannot Start on Apple Mac Leopard There were some problem during configuring MySQL5 Server on Leopard...
  2. Subversion, MySQL, HTML and PHP Cheat Sheet Follow with previous Regular Expression cheat sheet posted by psyber,...
  3. TextMate: Creating New Project in Shell Instantly Been using TextMate recently, really loving it like hell. There...
  4. symfony / propel with RAND() Lately I am working on a simple online test system...
  5. What is umask? umask? What? What is umask command use for in linux/unix...
  6. How To Generate a Certificate Signing Request (CSR) for an SSL Certificate This short tutorial is for Apache2.x + OpenSSL It’s advice...
  7. Quick File Copy on File Name with Sample Extension By default, some of the application installation provide you a...
  8. Sheep In The Box Source Code Release Many of you who attended HITBSecConf06 might seen Sheep In...

2 Responses to “Subversion or SVN, Basic Tips for Beginner”

  1. sey Says:

    ya need to move ya ass to git — pronto

  2. takizo Says:

    yea… trying it out… trying it out… ;)

Leave a Reply