Software Versioning and You

It's hard to image that after developing for so long that there was a time that I didn't use any type of software versioning software. Yes, you heard me right, there was a time that I would simply edit some code and upload it to a live environment without a way to track any changes. Versioning software like Subversion allows you to keep track of changes to your code in case. Below you will find steps to set up a svn (Subversion) repository on a host machine and locally.

STEP 1 -  Insure your host machine has svn install. Just log into the machine and punch in:
which svn

Your output should look something like this:
:~$ which svn
/usr/bin/svn

If your some reason you don't have svn installed on your host, here is where you can get started.

STEP 2 - Now that you have svn installed on your host you can create a repository. Here is the command for that:

svnadmin create (PATH TO YOU REPO HERE eg. /users/svnuser/myrepo)


STEP 3 - Next you will need to create a svn user. Open svnserve.conf (eg. /users/svnuser/myrepo/svnserve.conf) in your favorite editor and add the following:

anon-access = none
auth-access = write
password-db = passwd

 After that you will need add a password file () and add the follow:

(username) = (password)

STEP 4 - Run svn server:

svnserve -d

STEP 5 - On your local machine check out the repo:

cd ~/localworkspace
svn co svn+ssh://username@hostname/users/svnuser/myrepo

STEP 5 - Kick back, relax....... No breaks here start mashing away at code!



Comments

Popular posts from this blog

ASP.NET Identity Remember Me

ASP.NET MVC - How to enable/disable CaC/Client Certificate authentication per area or route.

IIS Express Client Certificates