At Leevio, we are going to use SVN or Subversion a lot. For demonstration and playing with the SVN system I chose Google Code Project hosting since it’s free and feature packed. I am a beginner at operating SVN and I had to get a sandbox SVN server to practise what I learn.
I already had the http://masnun.googlecode.com ready for this. So, I started trying out SVN on this account feeling relaxed that no matter what changes I make, no serious harm will be done.
SVN is pretty easy in fact. I read the “SVN Book” and “The Visual Guide to SVN”. None of them helped me grab SVN like the shell command — “svn help”. It was self explanatory and had a list of all available commands.
To start, I had to create a local repository or better said a local mirror of the project. I did the following:
1 |
svn checkout https://masnun.googlecode.com/svn/trunk/ masnun --username masnun |
It created a directory named “masnun” inside my linux home directory after I authenticated with my googlecode password.
Now I was ready to add files. So I copied a file named “quotes” into the /home/masnun/masnun (the local mirror) directory and typed in:
1 |
svn add quotes |
I got a text editing environment to write the changelog. After typing in a message, I pressed Ctrl+O to write out and then Ctrl + X to quit the editor.
Now the changes were reflected in the local copies, I had to sync the server. So I used:
1 |
svn commit |
And it transmitted all the data to the server 🙂
Now, I made some changes and updated the file using the following command:
1 |
svn update quotes |
Again, wrote the changelog and then :
1 |
svn commit |
I liked the simplicity and hated that I spent up much time reading theories telling me why SVN replaced CVS 🙁
Well, now I decided to delete the file:
1 2 |
svn del quotes svn commit |
That was it… Easy !