Skip to content
December 14, 2010 / Danii Oliver

A full SVN tutorial

Nowhere can I find a step by step SVN setup for an established SVN server so here is one.
(This assumes that an SVN server has been setup already and you just need to gain access on MAC OS X)
Steps:

  1. Obtain your username and password from your administrator
  2. Make sure subversion is installed on your device if not download and run the code. You can get Subversion by downloading the binary package built for your operating system obtainable from Subversion’s website http://subversion.tigris.org
  3. Once your install is complete, open Terminals-> Applications/Utilities/Terminal
  4. Type in cd ~/.subversion [->hit return] “you have just changed directories”
  5. From this directory type svn list https://svn.{([here would be the server link you need for your server's svn])} [->hit return] “this should already be setup if not please see blogs on ‘how to setup an svn server’ “
  6. Type in your login info [->hit return]
  7. Type cd / [->hit return] to navigate back to your root directory
  8. Navigate down to the directory you’d like to store your working copy in or make one by typing mkdir Name[->hit return]
  9. From your desired top directory type svn co https://svn.{([here would be the server link you need for your server's svn])} trunk[->hit return] “you have just created a working directory and checked out the lastest files”
  10. Incase it took you forever to do this and you think others may have made changes to their files type svn up just to be safe

There you are you are already to work on local copies and “check them in” to the server when ready.
It is best practice when “committing” a file to type a -m” ” (message) with the “check in” it helps you to know what was done at each revision incase you need to go back. Date and a revision number will be stored but not the file name when you do an svn log so I give a hint to the file name as well for quick reference.
There are graphical interfaces for SVN like “svnX” but don’t be afraid to use command line. Its really just talking to your computer and telling it what to do with your files then writing notes. Its elementary if you think about it but, fun none the less!

Learn command for SVN by typing svn help and look them up at Red-Bean.com’s Subversion site/

– Happy Coding
— Danii Oliver

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: