Search This Blog

Saturday, 8 January 2011

SVN

The main resource of information for subversion is the red book. Here I list a few important commands for fast reference.

Create a new repository:
  1. On the server: svnadmin create /svndir/reposname
  2. From the client: svn co svn://ip_address/reposname
  3. cd reposname
    mkdir trunk
    mkdir tags
    mkdir branch
    svn add *
    svn ci
Save and restore a repository:
  1. Create a dump: svnadmin dump /svndir/repos/gwt > /backupDir/svn_gwt.dump
  2. Create the repository: svnadmin create /svndir/repos/gwt
  3. Load the repository: svnadmin load /svndir/repos/gwt < /backupDir/svn_gwt.dump
Examining the history of a repository:
  •  Shows revisions 5 to 19 of a file or directory: svn log -r 5:19 file/directory_name
  •  "svn diff" with no options compares the working directory with the version from the last check out.

1 comment:

  1. To synchronize a repo:

    http://www.howtogeek.com/howto/ubuntu/change-ubuntu-server-from-dhcp-to-a-static-ip-address/

    ReplyDelete