Subversion
Subversion is a version control system, which allows you to keep a master copy of your project for collaboration. Old versions of files and directories are archived, along with a log of who, when, and why changes occurred, etc. Similar to the popular but old-fashioned CVS.
1. Checkout
cd to the directory you want to store the code in. then...
svn co svn:[path] (example: svn co svn://nmglug.org/nmglug-flyer)
This will copy the code tree housed on the Subversion server.
In the root dir created, in this case 'nmglug-flyer', you will also find
a '.svn' directory. DO NOT mess with this dir. This is where subversion
holds its data.
2. Read the change log
Make sure you are in the directory that svn created (nmglug-flyer). Type:
svn log
this will show you all the changelogs.
3. Commit
After you have made updates you will want to commit your work back to
the Subversion repository. You will need a user/pass for this. The command..
svn commit --username [username]
This command will then open VI (text editor) and expect you to make a log entry covering
the changes you have made. After you have typed the message type: ESC + !wq then you
will be promted for your password.
Other Commands:
Run while in the root directory for your particular repository (e.g., nmglug-flyer)
svn add [local path] adds a new file or dir to the repo to be version tracked. Run commit command for changes to take effect on repository.
svn rm [local path] removes file or dir from subversion. Run commit command for changes to take effect on repository.
svn status -v gives a report of the files that have been added, removed or changed. -v = verbose
svn update sync your version of the code tree with what is on the server (instead of 'checking out' each time).
Related:
http://subversion.tigris.org/
rapidsvn - Graphical frontend for svn
'apt-get install subversion'
|