I’ve been using Google’s open source project hosting to distribute my Tag Cloud Generator, but I haven’t been using the source code repository feature. They have a hard-to-find guide on getting started with the Subversion source control system, but the world needs something better. With screenshots. Plus I haven’t fed the blog recently.

You can find more information about Subversion and source control by reading a chapter of this book.

1.0 Prerequisites

Before we get started there are five things that you will need.

Google Account login used for all Google services like Gmail, Blogger, etc. Software Project hosted by Google Code

You’ll have to be a member of the project to add/modify files (contact the administrator) TortoiseSVN Windows client for Subversion (9 MB)

Requires a restart after installation

It’s a shell integration and all commands are performed within Windows Explorer GoogleCode.com Password Sign in to Project Hosting

Go to Profile >> Settings

Take note of your password

Subversion URL of project hosted at Google Code Sign in to Project Hosting

Go to Project >> Source

Will be in the format of



https://<projectname>.googlecode.com/svn/trunk/

GOTCHA

If you use http instead of https you will have authentication problems and waste 15 minutes trying to find out why your password doesn’t work. You could spend those 15 minutes doing something much more useful like not getting in trouble for ignoring your girlfriend.

2.0 Adding Files to an Empty Project

Select the directory your source code is in, Right Click and choose TortoiseSVN >> Import



Use the URL of the project Make sure it starts with https !!!



Fill in your Google username and your Google Code password



username and your password Wait for it to finish



3.0 Connecting to an Existing Project

Select the directory you want to check out the source code to, Right Click and choose TortoiseSVN >> Checkout





Use the URL of the project Make sure it starts with https !!!



You will not have to enter your username/password if you are already authenticated.

4.0 Getting Started with Editing Files

Right-click on the file/directory and then

SVN Update to get the latest changes

to get the latest changes SVN Commit to upload modified files

to upload modified files TortoiseSVN >> Add to add new files to the project

NOTE: Google Code Hosting doesn’t seem to support locks.

I was really surprised I couldn’t find better documentation on this from Google.

Related Posts

External Links