Setup. Install Subversion. Both on your client machines and on the server (ask your sysadmin). On Ubuntu:
Below the subversion server will be called svn.server.com, and the username will be username. I ssh'd to svn.server.com and ran the following command to create a Subversion repository where Subversion will store the projects.
apt-get install subversion
Create Project. To create a new project, create a new directory and populate the directory with files that you will need.
svnadmin create ~/subversion-repo
Import Project. Import the project into your subversion repository with the following command.
svn import -m "My Brilliant Paper" brilliant-paper svn+ssh://email@example.com/home/username/subversion-repo/brilliant-paper
Now delete your project directory. (You will download a working copy in the next step.)
Work Cycle. The following steps describe how to use Subversion to work on the project.
rm -rf brilliant-paper/*
- Download Project. Sit down at a computer, any computer, install Subversion if necessary, and download the latest version of the project. Either:
- download the project, if is hasn't been downloaded before:
svn checkout svn+ssh://firstname.lastname@example.org/home/username/subversion-repo/brilliant-paper
- or update the project if you've already downloaded a version of the project: in the project directory run,
- You can edit any files that exist and subversion will detect those changes.
- If you want to add a new file, then use the add command.
svn add newfile
- Similarly, you can delete, copy and move files or directories.
svn delete filename
svn copy filename copyname
svn move filename newname
svn commit -m 'Write a summary of your changes here.'
If there is no output, then all changes have been committed. If there is some output, then there are files that have been changed or added, but not committed for some reason. See the help page to decode the output: svn help status