There are several ways to connect to your repository.
Connecting with your browser
- Navigate to the (Panel > 'Goodies' > 'Subversion') page.
- Under the list of current projects, click the link for your repository.
- An authentication popup box then appears:
- Use the username and password you created when setting up the repository.
This loads your repository within your browser to view.
Connecting with a client
You can also connect with a 3rd party client. TortoiseSVN is a very popular choice.
Connecting via SSH (command line)
There are many commands you can run via SSH to connect and manage your repository. Below are some of the most common commands.
This command performs a checkout of your repository:
[server]$ svn co http://www.websitehelp.support/exampleProjectID/
If you run this in your user's directory, a new folder is created. It's named the same as your projectID, and you have now created a 'Working Copy' of your repository on your local machine. For further information, please visit the following page:
Once the repository is created, you can add folders and files that you have in another location. It is better to use this method to keep the revisions number down when first creating the repository.
[server]$ svn import /home/USERNAME/path/to/source file:///home/USERNAME/path/to/repository --message="Importing Project"
To ensure your Working Copy is using the most recent revision, run svn update:
[server]$ svn update
For further details, please visit the following page:
Once you have a working copy, you can now add files or directories to it. For example, if you add a file named 'myfile.txt' to the working copy directory, you must then run 'svn add' to actually add it to the working copy.
[server]$ svn add myfile.txt
Once it's added, you can now commit your changes to the repository.
After you have made all of your adjustments, you'll need to commit the changes to the repository.
[server]$ svn commit -m "log messages"
This command commits all changes. The -m flag allows you to leave a message as to what and why you have committed in this specific revision.
Running the list command with the --verbose flag lists the following information:
- Revision number of the last commit
- Author of the last commit
- Size (in bytes)
- Date and time of the last commit
[server]$ svn list --verbose