in reply to Learning How to Use CVS for Personal Perl Coding Practices
Short example of how to start out with subversion (honestly, if you're just starting out I don't see merit in beginning with one of the older version control systems, they're no easier to learn and make your daily life harder).
Let's say your current code is in /home/neversaint/code and you'd like to keep the subversion repository (the backend storage, i.e. database if you will) in /home/neversaint/subversion.
This will create an empty repository for you.svnadmin create /home/neversaint/subversion
This will import your codebase into the repository.cd /home/neversaint/code svn import . file:////home/neversaint/subversion
This will create a new copy of your current codebase in /home/neversaint/workspace. From then on, make all changes to these files. Whenever you want to save your files to the repository, do amkdir /home/neversaint/workspace cd /home/neversaint/workspace svn co file:///home/neversaint/subversion
svn -m "Commit message" ci
This will update the repository to the state of the workspace.
For further instructions, see the book pointed out by duff and the subversion documentation, execute
andsvn help
for details on certain commands.svn help <command>
|
---|