Skip to content

sourceControlSVN

Fei Liu edited this page Aug 25, 2015 · 10 revisions

Introduction

From the TortoiseSVN webpage, TortoiseSVN is "an Apache™ Subversion (SVN)® client, implemented as a Windows shell extension." Since it doesn't require the Subversion command line client to run, it's more easier to use.

Installing TortoiseSVN

Go to TortoiseSVN download page. Choose your OS, and you'll download the TortoiseSVN installer. Run the installer and follow the instructions. Keep all the options default. After git is installed, search for and use Git Bash to open the command line. There are also GUIs for git, but its good to know the command line.

The way to get a repository

1 Go to your Github page and find the repository you want

http://i.imgur.com/hDKriO5.png?1

2 There is a "Subversion" option on the right side toolbar, click it and copy the link by using the button after the URL

http://i.imgur.com/Wi0D68F.png

3 Go to the folder on your computer where you want to clone the repository to, right click and choose the "SVN Checkout"

http://i.imgur.com/OFrWrfg.png?1 http://i.imgur.com/obxIXr2.png

4 After choose "OK", the repository is finished to clone on your computer

http://i.imgur.com/LQRGcLx.png

The way to commit a file

1 IMPORTANT!

****When you're committing, always do a pull before doing a commit in case of merge conflicts. ****

The other reason is for you to test your code before committing if someone else made any changes. This hasn't happened much in the lab since people usually work on different files/part of projects but when you work more closely with others, this happens quite often.

2 Right click the folder you want to commit and choose the "SVN commit..."

http://i.imgur.com/sQv75FX.png

3 You can write the logs for your changes under the "Message"

http://i.imgur.com/c5Gw257.png

4 After you finish the message, you can choose the files you want to commit and click "OK"

http://i.imgur.com/TDshaTR.png

5 After choose "OK", the file is finished to commit to your repository

Clone this wiki locally