Looked around for something really simple on getting started with SVN for some guys I am working with who have never used it. I know I looked or something when I started out and did not find much help, so I figure I would make it a post so I could refer others to it later ;)
SVN HOSTING:
Public - First thing you need is a SVN hosting, if you’re going for open source then here are a couple, there are lots out there.
code.google.com
sourceforge.net
Private - If you don't want your code public then you either pay or there are a couple free ones as long as your data does not get too large. Here are some I have come across, there are lots more of these as well!
unfuddle.com
codespaces.com
SVN CLIENT:
Next you need a client to access the online source library. I use TortoiseSVN, and that’s what I am going to use for examples, its free and works well for me. As with everything else, there are lots more out there. You can download TortoiseSVN here:
http://tortoisesvn.net/downloads
TortoiseSVN is not your typical application you run and process your information, its integrated into your windows explorer. You will probably need to reboot when done installing it to enable all the features.
Once you all installed and rebooted with TortoiseSVN, we are ready to check out the latest version of the code from our library.
Create a local folder on your computer you want to store your code, right click on that folder and select "SVN Checkout".
You will then be prompted with the TortoiseSVN "Checkout" screen where you need to enter your SVN library address where its asking for "URL of repository". It will look something like:
http://yourproject.unfuddle.com/svn/yourproject_libraryname
(be prepared with your username and password if required)
The "checkout directory" should default to the folder you clicked on, it should also default to "fully recursive" and "revision HEAD" (which is the latest version).
Click the OK button and you should get a copy of whatever is in your library checked out into the local folder you created.
You can then edit and save your project and right click on the top folder and select "SVN Commit" to bring up the checking screen for your library (if there are others working on your project you should update your local copy before checking in your changes to help keep things in sync).
At the top you enter in a description of the changes you are checking in. Further down is a list of all the files SVN found that have been modified. At this point you can click on any of those files to select or unselect them from the checking process. You can also right click on any of the files and request a diff comparison of to the latest library version (highly recommended if you have any doubts).
Thanks about it for now, good luck!
GBY,
-R
No comments:
Post a Comment