2012年8月1日 星期三

Subversion

This is a quick note of how to use SVN on Linux server. Most of the tutorials on the web don't work for me. Some of them are just too complex for me. The content of this note is coming from documentation at http://subversion.tigris.org/.

SVN BOOK: http://svnbook.red-bean.com/en/1.7/svn-book.pdf

1. First thing is to create a repository for subversion
svnadmin create ~rosslo/repos

2. Importing your existing files into svn control
svn import ~rosslo/project/test/ file:///remote/us03home4/rosslo/repos/ -m "initial import"
: file:/// stands for local disk space
: -m is the message you want for this import

3. Now the files are in the repository; we have to checkout those files that they will become working copies. Here I created a folder for these working copies.
svn checkout file:///remote/us03home4/rosslo/repos/

4. Files will be checked out, and they are working copies.
svn status
svn diff
svn commit -m "revision2"
svn cat

沒有留言: