Title: Subversion intro Subject: Basic usage of subversion ------------------------------ 1. Install subversion on gentoo echo 'dev-util/subversion -apache2' >> /etc/portage/package.use emerge --update --newuse subversion 2. Create and check out a repository svnadmin create $HOME/svn_rep svn co file://$HOME/svn_rep svn_checkout 3. Add files to this repository cp my_linux_notes.txt $HOME/svn_checkout/ svn status $HOME/svn_checkout svn add $HOME/svn_checkout/* svn checkin -m 'initial import' 4. Edit the files in this repository echo 'man is the man who can RTFM' >> svn_checkout/my_linux_notes.txt svn status $HOME/svn_checkout/ svn status -v $HOME/svn_checkout/ svn checkin -m 'Notes about man' $HOME/svn_checkout/my_linux_notes.txt 5. Now look at the hisotry of this file svn log $HOME/svn_checkout/my_linux_notes.txt 6. Now check out the older version of the file svn up -r 1 $HOME/svn_checkout/my_linux_notes.txt 7. Show difference between new and old versions svn diff -r1:HEAD $HOME/svn_checkout/my_linux_notes.txt 8. Get list of subversion commands svn help 9. Get help on specific subversion command svn help ------------------------------ You would backup $HOME/svn_rep (the repository holding all data and hisotry) You can recreate $HOME/svn_checkout (the working copy)