How to put your project into a SVN repository

This is a quick and dirty step by step to put your project to an svn repository. It’s about a 10 minute step by step process after which you will be back to work without noticing a change.

Requirements:
The repository should already be created.
You should have Tortoise SVN installed on your pc.
You should have the URL to the repository and the username and password, if necessary, to access it.

UPDATE:
I’ve updated this tutorial and made it into a video. I’d rather you watch this video than use the instructions below. The video is 5 minutes, uses a much easier and quicker approach.

Download
Right-click and select “Save as…”
—–

In Windows Explorer go to the folder where your project resides. IE “c:\mySite”
Rename the folder to something else. IE “c:\mySite_original”

Create a new folder and name it the same name as the original folder name. IE “c:\mySite”
Right click on the new folder and select TortoiseSVN > Checkout

A pop-up window pops up. This is the Checkout dialog.
In the URL of the Repository field enter the path to the repository. IE “http://www.mysite.com/repos/name_of_repository”
Click on the ellipsis to the right of the URL repository textbox.

Another pop-up window pops up. This is the Repository Browser dialog.
Click the “plus” button next to the name of the repository. At this point you may be asked for a username and password. Enter them now.
– If it shows the message “Error * PROPFIND request failed…” then you have typed the incorrect path to the repository or the repository has not yet been created.
– If you do not get any message or see folders or files then you have connected to the repository.
Click OK to close the Repository Browser dialog.
Click OK to close the Checkout dialog.

TortoiseSVN will pop up a popup. This popup will inform you of everything TortoiseSVN is doing and has done.

Open your new folder. IE “c:/mySite”
Add three folders called, “trunk”, “branches” and “tags”

Open your original folder. IE “c:/mySite_original”
Select and copy all the files and folders inside this folder. Do not select the folder itself.

Open the trunk directory in your new folder. IE “c:/mySite/trunk”
Paste all the files from your original folder into this folder.

Right-click on the trunk directory in the new folder. IE “c:/mySite/trunk”
Select Tortoise SVN > Add

A pop-up window will pop-up. This pop-up is the Add dialog.
Make sure all files are checked and press the OK button.
This will add them to the repository. You still need to commit (upload) them to the repository.

Right-click on the trunk directory again.
Select Tortoise SVN > Commit

Another pop-up window will pop-up. This pop-up is the Commit dialog.
Make sure all files are checked and press the OK button.
This will upload them to the repository.

You can now return to working on your project. Your project will now be in the same but in the trunk subfolder. If you do not want your directory in the trunk subfolder copy your original files above trunk.
—–

Brief post instructions:

Before you begin modifying a file, right click on it or the project directory and run “SVN Update”. This will download the latest files from the repository.

When you have modified a file, right click and run “SVN Commit”. Enter a message stating your changes. Click Ok. This will upload your changes to the repository.

This entry was posted in Flash. Bookmark the permalink.

One Response to How to put your project into a SVN repository

  1. Pingback: A Dash of Flash » Blog Archive » How to move a project into a SVN repository - Update

Comments are closed.