Difference between revisions of "SVN Access"
m (→How To: Gain Access To SVN Repository On Windows) |
|||
| Line 17: | Line 17: | ||
* Run Putty and make a new session: | * Run Putty and make a new session: | ||
## Hostname: 75.98.165.66 | ## Hostname: 75.98.165.66 | ||
| + | ## Port: 7822 | ||
## Protocol: SSH | ## Protocol: SSH | ||
## Saved Sessions: RPSVN | ## Saved Sessions: RPSVN | ||
Revision as of 21:01, 9 January 2014
How To: Gain Access To SVN Repository On Windows
Requires:
- PuTTY & PuTTYgen
- TortoiseSVN
- Your Private Key
- Run PuTTYgen
- Click Conversions->Import Key...
- Navigate to and select your private key
- Click Actions->Save Private Key
- Save the putty private key file somewhere
- Close PuTTYgen
- Run Putty and make a new session:
- Hostname: 75.98.165.66
- Port: 7822
- Protocol: SSH
- Saved Sessions: RPSVN
- Connection->Data->auto-login username: oshroth
- Connection->SSH->preferred protocol: 2
- Connection->SSH->Auth->private key file: path\to\privatekey.ppk
- Click "Save" on the sessions panel to save this config.
- Click Open to test your session.
The following window should appear if the test was successful:
If an error message appears, double check all your details are correct and try again. If the problem persists contact Tim.
Assuming that PuTTY will handle your SSH connections, you should use the following repository URL to connect to the SVN repository:
svn+ssh://RPSVN/
The easiest way to test that you have the correct URL format is to attempt the following:
- Right-click on any Windows folder and choosing TortoiseSVN->repo-browser.
- Input the URL as described above
- Attempt to browse the repository. If everything is correct you will be able to browse it without receiving error messages.
[Note that TortoiseSVN defaults to using PuTTY to handle your SSH connections. During installation, TortoiseSVN registers itself as a handler for the svn+ssh protocol, and by default it calls upon an application called TortoisePlink (which is based on PuTTY) to deal with the SSH connection. This application uses the profile/session settings created by PuTTY, and this whole process is usually invisible to you.]
When viewing the above URL you should see 3 folders:
- trunk
- tags
- branches
- andey
- carla
- dylan
- jacob
- john
- logan
- tim
Trunk is the main project folder used to store our main reverie project, you generally shouldn't commit anything to this folder, that is Jacob and Tim's job.
Tags is used to store the compiled project exes
Branches is the main development folder used for individual version control while working on the project. Everyone has their own personal folder here to sync to. e.g. John can use branches/john for storing his work.
To start working with SVN (initially):
- Right-click a folder that you want to add to version control and select SVN Checkout...
- Enter svn+ssh://RPSVN/branches/<your name lowercase>/
- Click OK
- You will receive an warning about a non-empty folder, click OK
- Once the checkout finishes, click OK
- Right-click the folder again and select SVN Commit...
- Enter the same URL as before and click OK
