background preloader

Version control

Facebook Twitter

Project Kenai — We're More Than Just a Forge. The Trac Project. Subversion.tigris.org. Subversion Cheat Sheet. This Subversion cheat sheet was created during the initial setup of Subversion on Apache 2.0 on Windows and Mac OS X. A detailed tutorial covering most of the features of Subversion can be found in the online Subversion book. However, to make Subversion more useful for me, I created this Readers' Digest version. Create a Repository To store projects in Subversion, first you must create a repository. Svnadmin create /path/to/repository Windows svnadmin create d:/path_to_repository By default this sets up a Berkeley database to store the repository. Add a New Project - svn import To add a project, the Subversion documentation suggests that you create a directory structure like the following: A root project directory contains three subdirectories, branches, tags, and trunk.

Create the directories as described. Svn import project -m "First Import" svn import project -m "First Import" Network Checking Out a Project - svn checkout. Setting up a Subversion Server on Ubuntu Gutsy Gibbon server | S. All the required packages are available in the Ubuntu repositories. Installing Subversion Use apt-get: sudo apt-get update sudo apt-get install subversion Creating a Repository Let's say you want your repository to be in /var/svn/repos, type in these commands: cd /var sudo mkdir svn sudo svnadmin create /var/svn/repos In order to control who has access to the repository we will now add a user who will own the repository files. Sudo adduser svn Now make it impossible for anyone to log in as this user by editing /etc/passwd to set the svn user shell to /bin/false. Now change the ownership of the repository files. sudo chown -R svn.svn svn In order for someone to be permitted to use the repository they must be added to the svn group.

Sudo vigr Go to the end of the file and add your user name to the end of the line which starts svn. Admin:x:110:martin svn:x:1001:martin Now set up an ssh server, clients will connect to this machine using ssh: sudo apt-get install openssh-server Apache In the Trac.